Current News

Moderator: Mmiscool

User avatar
By Mmiscool
#29539 Added servo command.

You can now control servo motors.

SERVO:
Will set the angle of a servo connected to the the pin.
Angle must be between 0 and 180.
servo {pin no} {value or variable 0 to 180}
User avatar
By Mmiscool
#29743 ADDED ELSE TO IF THEN COMMAND. BUG FIX FOR EVALUATING = & ==


if bla = 5 then print "true" else print "false" is now some thing that works. I actually forgot all about implementing an else until today.

Did a bug fix for evaluating = and ==
= is for comparing numbers
== is for comparing strings

Documentation in language reference on site updated to reflect changes.

Also made goto, gosub and button commands more robust on finding branch labels for jumps.
User avatar
By Mmiscool
#30077 Added timer command.

Will allow for doing things at regular intervals.

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]
print "Doing Some Stuff"
wait

[Exit.ThisThing]
end