Skip to content

Instantly share code, notes, and snippets.

@hdurdle
Created January 3, 2015 15:42
Show Gist options
  • Save hdurdle/09856dcac09f6486d60e to your computer and use it in GitHub Desktop.
Save hdurdle/09856dcac09f6486d60e to your computer and use it in GitHub Desktop.
Send Full Red via Serial
import serial
import time
command = bytearray([4,255,0,0,10])
port = serial.Serial("/dev/ttyACM0", baudrate=57600, timeout=3.0)
time.sleep(2)
port.write(command)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment