meuter / argon-one-case-ubuntu-20.04

port of the argon one case power button and fan script for Ubuntu 20.04 on rpi 4
255 stars 50 forks source link

for 4B, also need "bus = smbus.SMBus(1)" #7

Open shenlijun opened 3 years ago

shenlijun commented 3 years ago

somewhere like this need to be modified

if rev == 2 or rev == 3: bus = smbus.SMBus(1) else: bus = smbus.SMBus(0)

meuter commented 2 years ago

This was part of the original argon1.sh script.

But I'm not sure I get what you mean. Should the if be extended with a new rev? like rev == 4? I don't have access to a 4B so I cannot check myself. Would you mind clarifying a bit?

fif81 commented 1 year ago

rev doesn't mean the raspberry pi revision but the gpio board layout revision. There is no change required for the raspberry pi 4B