Skip to content

Instantly share code, notes, and snippets.

@tombrad
Created July 27, 2017 09:20
Show Gist options
  • Save tombrad/a0c2d2ab8e0d18487bf7c88106cb40c4 to your computer and use it in GitHub Desktop.
Save tombrad/a0c2d2ab8e0d18487bf7c88106cb40c4 to your computer and use it in GitHub Desktop.
import serial
arduino = serial.Serial('/dev/ttyACM0',9600)
while True:
comando="H"
arduino.write(comando)
print('LED ENCENDIDO')
arduino.close()#FINALIZA LA COMUNICACION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment