add the Pi's I2C python script

master
Cole Deck 5 years ago
parent 4489e47d07
commit dbb0b6feae

@ -0,0 +1,6 @@
from smbus import SMBus
addr = 0x8 # bus address
bus = SMBus(1) # indicates /dev/ic2-1
bus.write_byte(addr, 0x78) # switch it on
print("Message sent to Arduino.")
Loading…
Cancel
Save