You could actually get a big improvement with turnDigitOn = digitalWrite.bind(null,[D6, D5, D4, D3, D2])
turnDigitOn = digitalWrite.bind(null,[D6, D5, D4, D3, D2])
But there's no access to underlying APIs, so if you want access to the IO, you need to access the address of the register directly :)
@Gordon started
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.
You could actually get a big improvement with
turnDigitOn = digitalWrite.bind(null,[D6, D5, D4, D3, D2])
But there's no access to underlying APIs, so if you want access to the IO, you need to access the address of the register directly :)