README.md is beefed up; i2c demo scripts are included

This commit is contained in:
2021-09-09 13:48:09 -04:00
parent 2daf6b2480
commit c271c4cca8
6 changed files with 340 additions and 6 deletions
+11
View File
@@ -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)