1
0
mirror of https://github.com/skaringa/water-counter.git synced 2024-11-22 01:14:24 +01:00

Different serial port on raspi 3

This commit is contained in:
Martin Kompf 2019-02-09 17:43:12 +01:00
parent a3a76dc7e1
commit 2f638128fa

View File

@ -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