To add an example of providing board independent abstractions for app logic (not just sensors but also actuators):
At one point I created LED.turnOn() and LED.turnOff() methods which depending on the board write 1 or 0 to the LEDx Pin depending on the wiring.
LED.turnOn()
LED.turnOff()
@opichals 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.
To add an example of providing board independent abstractions for app logic (not just sensors but also actuators):
At one point I created
LED.turnOn()
andLED.turnOff()
methods which depending on the board write 1 or 0 to the LEDx Pin depending on the wiring.