Skip to content

Instantly share code, notes, and snippets.

@tombrad
Created August 2, 2017 21:52
Show Gist options
  • Save tombrad/0f2ff42f2cfaebeb61528c41b1b0699d to your computer and use it in GitHub Desktop.
Save tombrad/0f2ff42f2cfaebeb61528c41b1b0699d to your computer and use it in GitHub Desktop.
#! /usr/bin/env python
import serial
arduino = serial.Serial('/dev/ttyACM0', 9600)
while True:
print "LED encendido"
arduino.write("H") #Mandar un comando hacia Arduino
# arduino.close() #Finalizamos la comunicacion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment