Skip to content

Instantly share code, notes, and snippets.

@matthiaslindholm
Created January 13, 2013 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthiaslindholm/e570d29470e3af18a4d4 to your computer and use it in GitHub Desktop.
Save matthiaslindholm/e570d29470e3af18a4d4 to your computer and use it in GitHub Desktop.
Python-Programm zum Paketzustellungsdetektor
'''
Paketzustellungsdetektor
MobileGeeks DIY
Matthias Lindholm
http://mobilegeeks.de/diy
Dieser Code ist nur mit Python 2.7,
nicht mit Python 3.x lauffähig!
'''
import serial
arduino = serial.Serial('SERIELLEN_PORT_AENDERN',baudrate=9600,timeout=1) # 'SERIELLEN_PORT_AENDERN' durch seriellen Port des Arduinos ersetzen
while True:
nachricht = arduino.readline()
print(nachricht)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment