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
@echo off | |
cls | |
cd <\path\where_is\the\python_receiver.py> | |
python -V | |
where python | |
python python_receiver.py | |
pause |
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
#!C:\Python27\python | |
import serial | |
import time | |
port='COM4' | |
baud=9600 | |
ser=serial.Serial(port, baud, timeout=0, parity=serial.PARITY_EVEN, rtscts=1) | |
while True: | |
data = ser.readline(ser.in_waiting).decode() | |
print(data) |
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
/* | |
* SerialOutput sketch | |
* Print numbers to the serial port | |
vezi php_receive.php | |
*/ | |
void setup() | |
{ | |
Serial.begin(9600); // send and receive at 9600 baud | |
} |
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
Hello everybody! |