Yes, I think jshSetOutputValue gets the JshPinFunction which defines the DAC or PWM device that is used. The PinFunctions come out of jsPinInfo.
IIRC, there are 4 bits in the Pin Function free for the DAC number, so you could have up to 16 DACs - it's just that the only devices Espruino runs on currently have 2 DAC channels (obviously multiple PWM though)
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.
Yes, I think jshSetOutputValue gets the JshPinFunction which defines the DAC or PWM device that is used. The PinFunctions come out of jsPinInfo.
IIRC, there are 4 bits in the Pin Function free for the DAC number, so you could have up to 16 DACs - it's just that the only devices Espruino runs on currently have 2 DAC channels (obviously multiple PWM though)