I have a MAX17048 battery gauge connected I2C lines to a 6 and 7 of Pico. In Sparkfun’s library, I didn’t find a way to get data from the gauge. How to point lib to these I2C lines?
We’ve also written a fully featured Arduino library making interfacing as easy as a lipo.getSOC() call away.
Run through the examples here https://github.com/sparkfun/SparkFun_MA … n/examples and see if that gets you going
That is the one I used. The one I am talking about.
Say this example https://github.com/sparkfun/SparkFun_MA … Simple.ino.
How to point I2C from default 0 and 1, to 6 and 7?
You have to change that in the pico’s settings - this post might help illuminate how to declare different pins for SDA and SCL https://github.com/arduino/ArduinoCore-mbed/issues/194 if you need to