Coder Social home page Coder Social logo

arduino_pf1550's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduino_pf1550's Issues

Header file conflict with BQ24195 library

In the example BasicUsage.ino, we call the Arduino_PMIC.h header file.

#include "Arduino_PMIC.h"


This is problematic for two main reasons:

  • Firstly, the naming implies that there is a single unified interface for dealing with PMIC across the Arduino ecosystem. Which there isn't: we have four in active use AFAIK. This leads to confusion from a documentation point of view.
  • Secondly, given the way files are arranged library conflicts may occur between the BQ24195 and PF1550 library since both have a Arduino_PMIC.h file. Depending upon which library is loaded first, it can block the other library from loading.

Possible Solutions

  • Quick fix: In our examples, we directly call the relevant library. So instead of Arduino_PMIC.h we would use BQ24195.h or PF1550.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 correctly
  • Intensive Fix: Have a wrapper library, which contains Arduino_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.
  • The third option would be to integrate the PMIC library directly into the core variant. @giulcioffi and @facchinm have done this for the https://github.com/arduino/ArduinoCore-mbed/blob/master/libraries/Nicla_System/src/BQ25120A.h

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

Cannot install library from CLI or IDE

I expect to be able to install the Arduino_PF1550 library via both the library manager as well as the CLI.

IDE

When searching for Arduino_PF1550 in the Library Manager of the IDE, the library is not shown
bild

CLI

Entering the command
arduino-cli lib install Arduino_PF1550
bring an error stating that the library is not found.
bild

Note that the ArduinoBLE library is found.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.