It seems to get the size down the DigiSpark does something strange with USB, but I think the main culprit is the voltage regulator. Bigger voltage regulators tend to waste quite a bit of power - I had to put quite an expensive regulator on the Pico to get a high-ish current while still not drawing much power.
There's no RTOS (well, Espruino is the RTOS) but you can schedule tasks to happen every so often in an IRQ, so it makes life easier for you.
It's not that bad, but you need to be pretty used to writing embedded code to get that C working nicely.
If you're interested in the internals, you could look at http://www.espruino.com/Performance and http://www.espruino.com/Internals pages
© Espruino, powered by microcosm.
Report a problem