You are right. I will have to delegate it to some utility classes. This project is mostly in my head at this time so you probably saved me some trouble later on.
I also realized that using pinMode is a good idea, wasn't even aware of it.
Am I right thinking that onInit is a good place for pin mode configuration?
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.
You are right. I will have to delegate it to some utility classes. This project is mostly in my head at this time so you probably saved me some trouble later on.
I also realized that using pinMode is a good idea, wasn't even aware of it.
Am I right thinking that onInit is a good place for pin mode configuration?