Skip to content

Instantly share code, notes, and snippets.

@tombrad
Created July 29, 2017 20:44
Show Gist options
  • Select an option

  • Save tombrad/af9f0de1ce0904cd142e982f714cd0c6 to your computer and use it in GitHub Desktop.

Select an option

Save tombrad/af9f0de1ce0904cd142e982f714cd0c6 to your computer and use it in GitHub Desktop.
Nuevo archivo para prender LED, versión 1
import serial
arduino = serial.Serial('/dev/ttyACM0', 9600)
arduino.write("H") #Mandar un comando hacia Arduino
print('LED ENCENDIDO')
arduino.close() #Finalizamos la comunicacion
@tombrad
Copy link
Author

tombrad commented Jul 29, 2017

ESTO NO FUNCIONA, solo lo coloco como ejemplo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment