-
-
Save matthiaslindholm/e570d29470e3af18a4d4 to your computer and use it in GitHub Desktop.
Python-Programm zum Paketzustellungsdetektor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
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