Thanks - someone else mentioned about the lack of info on onInit - I'll try and add it to the documentation.
Which command for I2C did you have to run in onInit? If you write I2C1.setup({scl:B6,sda:B7}); then Espruino is supposed to automatically remember that and run it at power on (even without onInit).
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.
Thanks - someone else mentioned about the lack of info on
onInit
- I'll try and add it to the documentation.Which command for I2C did you have to run in
onInit
? If you writeI2C1.setup({scl:B6,sda:B7});
then Espruino is supposed to automatically remember that and run it at power on (even without onInit).