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
1 changed files with 2 additions and 1 deletions

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