Created
July 27, 2017 09:20
-
-
Save tombrad/a0c2d2ab8e0d18487bf7c88106cb40c4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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