I love Espruino and bacon! :P
Most recent activity
Sounds like heap memory is incredibly low! Not sure what the cause of it could be. Did you try downgrading the firmware to 1v97-1v98? These use an earlier version of the Espressif SDK. Maybe could help -- just guessing.
It showed up only recently, but probably is in 1v99 for sure:
enable - switches Bluetooth on or off
Switches Bluetooth off/on, removes saved code from Flash, resets the board, and on restart creates jsVars depending on available heap (actual additional 1800)
Note: This is only available in devices with Bluetooth LE capability
Did you turn off bluetooth? It frees up some resources on that version particularly.
Hi -- just curious if support for PSRAM made it in yet. I know there was some discussion of it, but it seemed a bit vague...
These guys are a little cowboy with their IDF, huh?
Rotary encoders for whatever reason seem to be problematic on the ESP32 and ESP8266. Maybe because "setWatch" uses polling instead of interrupts? I'm not sure. At least your setup is not crashing as it did for me.
You could try different pins. This could at least improve the situation.
Yeah I think the ESP32 SDK has been going a bit weird lately -- and you're right its becoming increasingly hard to build something reliable on top of it. Its a bit strange that at version 3 -- Espressif is still introducing breaking changes to their API etc. I also get lots of memory errors and failures when doing http / https requests.
Anyways lets hope as the SDK matures things will get sorted out.
I tried it out and it worked (rotation with no crashing). However after, I started adding some intervals for other stuff and the quality of the readings degraded significantly -- it couldn't really figure out when a rotation was happening or not. I would spin it, and the value wouldn't change, but sometimes it would -- kind of unreliable. I guess this is because its using software interrupts? For my build the encoder is important, so I'll probably dedicate a small mcu like an ATTINY85 or an ESP-01 with Arduino on it, just to read the rotation. Then feed that into my ESP32.