Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
2 contributors

Users who have contributed to this file

@Gadgetoid @sandyjmacdonald
executable file 26 lines (18 sloc) 383 Bytes
#!/usr/bin/env python
from pms5003 import PMS5003
print("""all.py - Continously print all data values.
Press Ctrl+C to exit!
""")
# Configure the PMS5003 for Enviro+
pms5003 = PMS5003(
device='/dev/ttyAMA0',
baudrate=9600,
pin_enable=22,
pin_reset=27
)
try:
while True:
data = pms5003.read()
print(data)
except KeyboardInterrupt:
pass
You can’t perform that action at this time.