Yes, for ESP8266, all you need is ESP8266=1 - just like WIZnet.
It's just that the code is minified before being sent to the compiler. I'm actually pretty surprised the minifier doesn't rip out the "compiled" string too. I guess I should swap things round so it happens first.
As I said, the compiler's pretty basic right now. It still handles while and if though. If you need the speed it's not exactly a massive issue to re-write for loops as while loops for now.
edit: The compiler now supports for loops and function calls, but you'll need to use a Web IDE from GitHub
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes, for ESP8266, all you need is
ESP8266=1
- just like WIZnet.It's just that the code is minified before being sent to the compiler. I'm actually pretty surprised the minifier doesn't rip out the
"compiled"
string too. I guess I should swap things round so it happens first.As I said, the compiler's pretty basic right now. It still handles
while
andif
though. If you need the speed it's not exactly a massive issue to re-writefor
loops aswhile
loops for now.edit: The compiler now supports
for
loops and function calls, but you'll need to use a Web IDE from GitHub