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) | |
arduino.write("L") #Mandar un comando hacia Arduino | |
arduino.close() |
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) | |
arduino.write("H") #Mandar un comando hacia Arduino |
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: | |
arduino.write("H") #Mandar un comando hacia Arduino | |
arduino.close() #Finalizamos la comunicacion |
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) | |
arduino.write("H") #Mandar un comando hacia Arduino | |
print('LED ENCENDIDO') | |
arduino.close() #Finalizamos la comunicacion |
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
<html> | |
<head> | |
<?php | |
if (isset($_POST['LedON'])) | |
{ | |
exec('sudo python /var/www/html/raspduino/enciendeled.py'); | |
} | |
if (isset($_POST['LedOFF'])) | |
{ | |
exec('sudo python /var/www/html/raspduino/apagaled.py'); |
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
<?php | |
exec("sudo python enciendeled.py"); | |
?> |
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) | |
comando="L" | |
arduino.write(comando) | |
print('LED APAGADO') | |
arduino.close()#FINALIZA LA COMUNICACION |
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 |
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 = raw_input('Introduce un comando: ') | |
arduino.write(comando) | |
if comando == 'H': | |
print('LED ENCENDIDO') | |
elif comando == 'L': |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mDMEYi64TRYJKwYBBAHaRw8BAQdAvxSLwojlecR+pEe8oEd+jnoqLqifnp7TX2Hj | |
gZDYnk+0JVRvbWFzIEJyYWRhbm92aWMgPHRvbWJyYWQyQGdtYWlsLmNvbT6ImgQT | |
FgoAQhYhBNhzBG0vkYcgkjjPP+mOQtSh7d8/BQJiLrhNAhsDBQkDwxUzBQsJCAcC | |
AyICAQYVCgkICwIEFgIDAQIeBwIXgAAKCRDpjkLUoe3fP4wuAP9RGBMSZAWCPQpR | |
NxqCVadL9GrLytPx9f7i2KE05A0a0wEA33EKlbFaaFN56frpFpRhOl6ltuAiDKBi | |
+jCwjo2Gsg+4OARiLrhNEgorBgEEAZdVAQUBAQdA5P5bwvxr45+hPLgcRCwLMeTK | |
+/JE2dsxW2ly3X+ZRCgDAQgHiH4EGBYKACYWIQTYcwRtL5GHIJI4zz/pjkLUoe3f | |
PwUCYi64TQIbDAUJA8MVMwAKCRDpjkLUoe3fP2ydAP9DqJ8ZnHRoWXoaGqcGk4rC |