Page 8 of 9
Re: ESP8266Basic.com Basic interpreter for esp8266
Posted:
Sun Sep 20, 2015 9:59 pm
by Mmiscool
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}
Re: ESP8266Basic.com Basic interpreter for esp8266
Posted:
Wed Sep 23, 2015 11:33 pm
by Mmiscool
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.
Re: ESP8266Basic.com Basic interpreter for esp8266
Posted:
Mon Sep 28, 2015 7:07 pm
by Mmiscool
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
Re: ESP8266Basic.com Basic interpreter for esp8266
Posted:
Wed Sep 30, 2015 1:32 am
by Markus Gritsch
Specifying the color of circles does not work, because the code replaces the 5th item with the color, but GraphicsCircleCode has it at the 4th position.