Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4774

Compute Module • Re: DS3231 in place of PCF8053

$
0
0
The INA219 Python library looks like it must use i2cdev ("/dev/i2c-0", etc.) to talk to the hardware. Provided you tell it which I2C bus to use by passing a "busnum" parameter to the constructor, it should all just work:

Code:

ina = INA219(SHUNT_OHMS, busnum=10)

Statistics: Posted by PhilE — Tue Jul 09, 2024 10:38 am



Viewing all articles
Browse latest Browse all 4774

Trending Articles