In jshardware.c is a function, jshSetOutputValue, used for waveforms (and others ?) to set analog output.
To set the output, only a JshPinFunction is given.
This needs to be translated to a pin.
What is the best way to do that ?
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.
In jshardware.c is a function, jshSetOutputValue, used for waveforms (and others ?) to set analog output.
To set the output, only a JshPinFunction is given.
This needs to be translated to a pin.
What is the best way to do that ?