Initial commit
This commit is contained in:
@@ -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