Place to put your Basic demos and examples

Moderator: Mmiscool

User avatar
By Mmiscool
#53028 Tested on ESP Basic 3.0.Alpha 40.
Alpha 39 had a bug in the Serial.read.chr() returning a number in stead of a character. this has been resolved and this short sweet mini browser to serial terminal is now working.

Only 23 lines of code!!!

https://youtu.be/vsTsmD38oAk

Code: Select allTextbox MyMsg
button "Send line", [send]
button "Send just txt", [send.txt]
print
serialbranch [serialin]
wait

[serialin]
bla$ = Serial.read.chr()
if bla$ == chr(13) then print
if bla$ == chr(10) then print
wprint bla$
if serial.available() <> 0 then goto [serialin]
return

[send]
Serialprintln MyMsg
wait

[send.txt]
serialprint MyMsg
wait

User avatar
By Mmiscool
#53477 I am dure you could do the same thing with lua. Will just require a lot more code for the same result.