1
0
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:
Martin Kompf 2019-02-09 17:43:12 +01:00
parent a3a76dc7e1
commit 2f638128fa

View File

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