Initial commit
This commit is contained in:
commit
368127e848
355 files changed
+67999
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import smbus
|
||||
import time
|
||||
|
||||
# Remplacer 0 par 1 si nouveau Raspberry
|
||||
bus = smbus.SMBus(1)
|
||||
address = 0x12
|
||||
|
||||
for x in range(0, 100):
|
||||
bus.write_byte(address, 1)
|
||||
#bus.read_byte(address)
|
||||
for x in range(0, 100):
|
||||
bus.write_byte(address, 0)
|
||||
#bus.read_byte(address)
|
||||
Reference in new issue
Block a user