Place to put your Basic demos and examples

Moderator: Mmiscool

User avatar
By Mmiscool
#29821 The input command is working as intended.

It waits for the user input and then continues running along.

I can implement a new command like serialprint to print data to the serial port and another like serialprintln to print to the serial port with a line feed or carriage return.

As for a timer this is an interesting concept.
It will require some thought as to go about it.

I am thinking some thing like
timer milliseconds [branch.label]

the branch label would have to terminate with a wait command and allow the program to continue executing where it was.


Some thing like the following possibly.
Code: Select alltimer 5000 [do.some.stuff]
print "going to do some stuff in a bit]
button "Click me to exit" [Exit.ThisThing]
wait

[do.some.stuff]
ai bla
print bla
wait

[Exit.ThisThing]
end
User avatar
By kingedem
#29932 Hi Micheal,

If you are implementing the 'Timer' function then, do implement enable and disable 'Timer' method.

Thanks.