int ledPin = 13;
int i=0;
void setup() {
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
}
void loop()
{
i=i+1;
Serial.println(i,DEC);
digitalWrite(ledPin, HIGH);
delay(500);
digitalWrite(ledPin, LOW);
delay(500);
}
Then I plugged the Arduino into the Chumby One USB port, I turned on the Chumby sshd, ssh'ed into the Chumby One, and did this:
stty -F /dev/ttyUSB0 9600
while true; do
read LINE < /dev/ttyUSB0
echo $LINE
done
And boom, I started seeing data coming in from the Arduino. Wow, that was simple!
Next to get a USB hub so I can have the USB drive with Chumby Python & PySerial on it as well as connecting the Arduino. I assume that would work...
No comments:
Post a Comment