Header file conflict with BQ24195 library #3
Labels
conclusion: resolved
Issue was resolved
topic: documentation
Related to documentation for the project
type: imperfection
Perceived defect in any part of project
In the example BasicUsage.ino, we call the
Arduino_PMIC.h
header file.Arduino_PF1550/examples/BasicUsage/BasicUsage.ino
Line 1 in 2852629
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_PF1550/src/Arduino_PMIC.h
Line 19 in 2852629
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
PF1550.h
inside newly developed tutorials & app notes?Related to: arduino-libraries/Arduino_BQ24195#23
The text was updated successfully, but these errors were encountered: