@verdeimpacat
the onInit is mentioned in the reference of E.on() which creates handlers(!) executed when Espruino gets power.
While these handlers are independend from each other, there can be only one onInit() which may be more convenient if you want to modify "on the fly".
Greetings from Frankfurt/Germany, Uli
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.
@verdeimpacat
the onInit is mentioned in the reference of E.on() which creates handlers(!) executed when Espruino gets power.
While these handlers are independend from each other, there can be only one onInit() which may be more convenient if you want to modify "on the fly".
Greetings from Frankfurt/Germany, Uli