CO2 Meter SE-11 Manuale - Pagina 11

Sfoglia online o scarica il pdf Manuale per Microcontrollori CO2 Meter SE-11. CO2 Meter SE-11 12.

6/3/2019

Section 4: Connecting to Raspberry Pi

Diagram for UART connections to Raspberry Pi
import
serial
import
time
import
fcntl
import
binascii
#for usb leave uncommented
ser
=
serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=1.5)
#to usb the UART GPIO Pins, comment the above line and uncomment the line below
#ser = serial.Serial("/dev/ttyAMA0", baudrate=9600, timeout=1.5)
ser.flush()
ser.close()
time.sleep(1)
while
1:
README.md
> Wiring
11/12