Putting all into onInit() can create issues with scopes of variables. If things are defined in onInit(), I always define the variable outside. That give me the options to go mixed - global and function local scoped references.
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.
Putting all into onInit() can create issues with scopes of variables. If things are defined in onInit(), I always define the variable outside. That give me the options to go mixed - global and function local scoped references.