Open main menu

Changes

X729-script

711 bytes added, 18:49, 22 July 2023
NOTE: sample/bat.py will run with error if you don't enable I2C.
 
'''Check & review I2C address:'''
<PRE>
pi@raspberrypi:~ $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- 36 -- -- -- -- -- 3c -- -- --
40: 40 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
</PRE>
<PRE>
#36 - the address of the battery fuel gauging chip
#3c - OLED display
#40 - TI INA219 12-bit current/voltage/power monitor
#68 - the address of the RTC chip
</PRE>
==Preconfigured <code>config.txt</code>==