Header file conflict with PF1550 library #23
Labels
topic: documentation
Related to documentation for the project
type: imperfection
Perceived defect in any part of project
In the example BatteryCharger.ino, we call the
Arduino_PMIC.h
header file.Arduino_BQ24195/examples/BatteryCharger/BatteryCharger.ino
Line 16 in bc6ea2c
This is problematic for two main reasons:
Arduino_PMIC.h
file. Depending upon which library is loaded first, it can block the other library from loading.Arduino_BQ24195/src/Arduino_PMIC.h
Line 20 in bc6ea2c
Possible Solutions
Arduino_PMIC.h
we would useBQ24195.h
orPF1550.h
. This should be possible. Users are then advised to check which board they have and select the PMIC library accordingly. This would slightly reduce the portability of the code, but ensure that it runs correctlyArduino_PMIC.h
that calls the relevant PMIC library based on the board selected in the IDE or (optionally) an option in the sketch directly. I assume this would require more work (and potentially break things). Yet it would make the user experience more fluid.Until a solution is decided upon & delivered, is it safe to use
BQ24195.h
inside newly developed tutorials & app notes?Related to: arduino-libraries/Arduino_PF1550#3
The text was updated successfully, but these errors were encountered: