Definitely writing convert in Inline C would help - but Inline C doesn't work on ESP8266/ESP32 so it's not a great help here :) I believe scan actually already spends 90% of its time inside native code with shiftOut though.
Thanks for posting up the code @JumJum - that's frustrating as it's almost there... If it were 20ms it would be reasonably workable :(
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.
Definitely writing
convert
in Inline C would help - but Inline C doesn't work on ESP8266/ESP32 so it's not a great help here :) I believescan
actually already spends 90% of its time inside native code withshiftOut
though.Thanks for posting up the code @JumJum - that's frustrating as it's almost there... If it were 20ms it would be reasonably workable :(