My point is really that you're using the hardware to do what you want and JS isn't involved - so execution speed isn't an issue. That means you might as well just use a JavaScript module to set everything up because you then have all the flexibility of JS - and everyone can easily contribute fixes/tweaks to the module.
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.
@allObjects that's exactly what you can do with http://www.espruino.com/STM32+PeripheralÂs and http://www.espruino.com/NRF52LL. Someone is welcome to contribute modules/examples for ESP32/ESP8266 as well if they want to.
My point is really that you're using the hardware to do what you want and JS isn't involved - so execution speed isn't an issue. That means you might as well just use a JavaScript module to set everything up because you then have all the flexibility of JS - and everyone can easily contribute fixes/tweaks to the module.