Shop OBEX P1 Docs P2 Docs Learn Events
Re: EXTENDED_FDSERIAL.SPIN, help with Strings and serial — Parallax Forums

Re: EXTENDED_FDSERIAL.SPIN, help with Strings and serial

SchalliolSchalliol Posts: 4
edited 2011-02-08 08:41 in Propeller 1
How do I capture the incoming Ascii data (assuming numeric and one character at a time followed by a CR from the terminal) and allow it to be displayed on a 1 of 10 bank of LEDs, say pins 1 to 10?
In other words, I want to capture and convert the string variable "mystring" from the line Serial.RxStr(@mystring) and present it to a local display.
CODE

CON


_clkmode = xtal1 + pll16x

_xinfreq = 5_000_000

OBJ

Serial : "Extended_FDSerial"

Var

byte mystring[10]

Pub Start Serial.start(31,30,0,9600) ' Rx,Tx, Mode, Baud

Serial.RxStr(@mystring)

serial.tx(13)

serial.str(@mystring)

Dave Schalliol
Sign In or Register to comment.