needed same thing for ID130 recently https://github.com/fanoush/ds-d6/tree/master/espruino/DFU/ID130Color see the jswrap stuff and board file, there is method marked init. it should probably go to libs but I put it right next to board file to boards/
for setting pin high this is not best example, better see this https://github.com/espruino/Espruino/blob/master/targets/nrf5x/jshardware.c#L688
yes they are 1:1
@fanoush 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.
needed same thing for ID130 recently https://github.com/fanoush/ds-d6/tree/master/espruino/DFU/ID130Color see the jswrap stuff and board file, there is method marked init. it should probably go to libs but I put it right next to board file to boards/
for setting pin high this is not best example, better see this https://github.com/espruino/Espruino/blob/master/targets/nrf5x/jshardware.c#L688
yes they are 1:1