Try taking out the digitalWrite to give us a base line. What is the cost of simply running the loop without the I/O?
@Kolban 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.
Try taking out the digitalWrite to give us a base line. What is the cost of simply running the loop without the I/O?