mirror of
https://github.com/skaringa/water-counter.git
synced 2024-11-24 18:34:23 +01:00
Different serial port on raspi 3
This commit is contained in:
parent
a3a76dc7e1
commit
2f638128fa
3
wairc.py
3
wairc.py
@ -31,7 +31,8 @@ import serial
|
|||||||
import rrdtool
|
import rrdtool
|
||||||
|
|
||||||
# Serial port of arduino
|
# Serial port of arduino
|
||||||
port = '/dev/ttyAMA0'
|
#port = '/dev/ttyAMA0'
|
||||||
|
port = '/dev/serial0'
|
||||||
|
|
||||||
# counter unit: 1 revolution = x m^3
|
# counter unit: 1 revolution = x m^3
|
||||||
trigger_step = 0.001
|
trigger_step = 0.001
|
||||||
|
Loading…
Reference in New Issue
Block a user