Skip to content

Instantly share code, notes, and snippets.

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