-
-
-
-
-
-
-
here is the travis build with esp-idf 3.1:
https://www.espruino.com/binaries/travis/4f2b50f97887874339db5fae1f643fb6a6a47489/espruino_esp32.bin
-
@opichals
It seems the change you recently made force the PORT option to be used, and it wasn't in the past....
So I have removed that in a bleeding edge build - that used the esp-idf 3.1 binary:https://www.espruino.com/binaries/travis/4f2b50f97887874339db5fae1f643fb6a6a47489/espruino_esp32.bin
-
When I connect the IDE I see a warning: setsockopt(SO_REUSPORT) failed. Is that expected?
@opichals made changes to this area recently
I have not personally tested the new buildI try to connect it to my router and see that the following is not working:
setHostname
This has not been implement at this stage. It requires using the mDNS library - and there was a move to do this in JS as a library rather than coding specifically for the ESP32 using esp-idf.
It could be added.setConfig
I believe this is ESP8266 specific - I'm not sure other ports support it.
When the ESP32 was release there was not power mode options - there might be now - I have not looked recently.
-
-
-
-
-
https://github.com/espruino/EspruinoBuildTools/blob/master/esp32/build/app/partitions_espruino.csv
Looks like 1344k - pretty tight then!
-
-
At start up - why not create a 0-89 indexed float array and store the value of the sin at each index. Then when you want to use the value - it's just a simple lookup - no computation. You just need to do some manipulation of the index - so for 100deg look up the 80 degree value - and for > 180 flip the sign...
The compares might be slower so you could store the whole array - or 0-179.
You could even store fixed point values rather than floating point.
-
-
Go back and have a look at the sample: http://www.espruino.com/Writing+Modules
You need to add a constructor function and export the reference to that.
The bind your contants to that function. so if you called it
myMod
:var myMod = function (options) { this.options = {} || options; }; myMod.C = { U : "up", D : "down", L : "left", R : "right", N : "north", E : "east", S : "south", W : "west", T : "top", M : "middle", B : "bottom" }; exports = myMod;
my_mod=new myMod(); print my_mod.C.U;
-
-
-
-
-
@JumJum wrote the neopixel code on the esp32 using the ESP-idf rmt code. It's possible that a two channels might be using the same timers and that is what is screwing it up?
-
The issue here is this:
This is setting up 100 timeouts that will fire nealry at the same time. I think you are expecting them to queue up.
If you get rid of the
setTimeout
and just callwriteFile()
I think you will find it will run fine.