lunedì 31 maggio 2010

Alternative Arduino Serial Monitor

On my Arch64 box Arduino's Serial Monitor crashes. I don't know why but I'm used to this kind of bugs... live at 64bit was never easy.
So I wrote a simple python script which let me see serial communications on the console:
import serial
import time

seriale = serial.Serial('/dev/ttyUSB0', 9600, timeout = 1)

while 1:
  print(seriale.read(seriale.inWaiting()))
  time.sleep(0.1)

Nessun commento:

Posta un commento