README.md is beefed up; i2c demo scripts are included
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import smbus
|
||||
|
||||
s=smbus.SMBus(1)
|
||||
for i in range(3,127):
|
||||
try:
|
||||
s.read_byte(i)
|
||||
print("\nI2C detected: "+hex(i))
|
||||
except:
|
||||
print("skip: "+hex(i)+', ',end='',flush=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user