Re: EXTENDED_FDSERIAL.SPIN, help with Strings and serial
Schalliol
Posts: 4
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
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