diff --git a/power.py b/power.py new file mode 100644 index 0000000..97848be --- /dev/null +++ b/power.py @@ -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.") \ No newline at end of file