Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Import de la librairie serial
import serial
# Ouverture du port serie avec :
# '/dev/ttyXXXX' : definition du port d ecoute (remplacer 'X' par le bon nom)
# 9600 : vitesse de communication
serialArduino = serial.Serial('/dev/ttyXXXX', 9600)
# Ecriture de chaque message recu
while True :
print(serialArduino.readline())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.