[IAEP] Arduino and XO-1
Alan Jhonn Aguiar Schwyn
alanjas at hotmail.com
Fri Oct 5 01:25:24 EDT 2012
Replace your arduino.py (in the folder /plugins/arduino) with this.This version checks for ttyUSB and ttyACM
I don't have an arduino to check it, but I think that must work.
I'm not sure why your board no is listed like a serial device..
> To: gerald.ardito at gmail.com
> CC: alanjas at hotmail.com; iaep at lists.sugarlabs.org
> From: forster at ozonline.com.au
> Date: Fri, 5 Oct 2012 15:01:29 +1000
> Subject: Re: Re: [IAEP] Arduino and XO-1
>
> > Alan,
> >
> > Upon doing some research, apparently /dev/ttyACM0 is the identifier for
> > the board.
> >
> > Do I have to modify the plugin? If so, how do I do this?
>
> in my blogpost i give a link to a dirty hacked version for ttyACM0
>
> This version http://www.box.com/shared/bsf8tmj6al is hard coded to dev/ttyACM0, that means it only works the first time the Leostick is plugged in and not at all for older Arduino boards. It is patched and works on Sugar 0.94.
>
> I cant remember where or what I patched exactly but somewhere in the plugin code it looks for ttyUSBn, n=1,2,3 ..... and I hacked that
>
> It would be good if a more competent programmer than me had it search the ttyUSBn and ttyACMn
>
> Tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/iaep/attachments/20121005/cfbc4bc4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arduino.py
Type: text/x-script.phyton
Size: 8716 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/iaep/attachments/20121005/cfbc4bc4/attachment.bin>
More information about the IAEP
mailing list