Roland_Barthes
Member
Hi!
I am working with this sketch right now on Teensy 2.0 which works very fine:
http://arduino.cc/en/Tutorial/ReadASCIIString
BUT now I don't want to receive data via USB BUT via the UART (Pin 7 & 8)!
How can this be managed?
Of course I tried to replace "Serial" with "Uart" which I think is working with Serial<->Uart.available.
But it seems that
Is not working while Arduino is compiling that.
Any Idea? First reading the data as a complete string and than using stream.parseInt() ?
Thanks in advance,
Roland
I am working with this sketch right now on Teensy 2.0 which works very fine:
http://arduino.cc/en/Tutorial/ReadASCIIString
BUT now I don't want to receive data via USB BUT via the UART (Pin 7 & 8)!
How can this be managed?
Of course I tried to replace "Serial" with "Uart" which I think is working with Serial<->Uart.available.
But it seems that
Code:
int red = Uart.parseInt();
Is not working while Arduino is compiling that.
Any Idea? First reading the data as a complete string and than using stream.parseInt() ?
Thanks in advance,
Roland