File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ class basicI2C():
1313 def __init__ (self , address , bus = 1 ):
1414 self .address = address
1515 # Bus 1 is Modern RPis, Bus 2 is BBB, Bus 0 is older RPis
16- if os .path .exists ('/dev/i2c-2' ) or os .path .exists ('/sys/class/i2c-2' ):
16+ # uEnv.txt indicates a BBB, so 2 would be ok. On single HDMI port RPi's i2c-2 can show up, but isn't what should be used
17+ if os .path .exists ('/boot/uEnv.txt' ) and (os .path .exists ('/dev/i2c-2' ) or os .path .exists ('/sys/class/i2c-2' )):
1718 bus = 2
1819 elif os .path .exists ('/dev/i2c-0' ) or os .path .exists ('/sys/class/i2c-0' ):
1920 bus = 0
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ echo -e "\nInstalling python3-smbus..."
77sudo apt-get install -y python3-smbus
88
99if test -f /boot/config.txt; then
10- echo -e " \nInstalling RPi.GPIO ..."
11- sudo apt-get install -y python3-rpi.gpio
10+ echo -e " \nInstalling python3-rpi-lgpio ..."
11+ sudo apt-get install -y python3-rpi-lgpio
1212fi
1313
1414echo -e " \nRestarting FPP..."
You can’t perform that action at this time.
0 commit comments