mirror of
https://github.com/skaringa/water-counter.git
synced 2025-07-03 03:47:42 +02:00
Different serial port on raspi 3
This commit is contained in:
parent
a3a76dc7e1
commit
2f638128fa
1 changed files with 2 additions and 1 deletions
3
wairc.py
3
wairc.py
|
@ -31,7 +31,8 @@ import serial
|
|||
import rrdtool
|
||||
|
||||
# Serial port of arduino
|
||||
port = '/dev/ttyAMA0'
|
||||
#port = '/dev/ttyAMA0'
|
||||
port = '/dev/serial0'
|
||||
|
||||
# counter unit: 1 revolution = x m^3
|
||||
trigger_step = 0.001
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue