Ok, then that's probably ok - you have the stuff I posted above for PWM pins, and then you have each of the DAC channels done with DAC_CH1&2.
You leave jshAnalogOutput to set the pins themselves up. The idea is that jshSetOutputValue is fast since it runs in an IRQ - you don't want it having to configure pin states each time a value is written.
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.
Ok, then that's probably ok - you have the stuff I posted above for PWM pins, and then you have each of the DAC channels done with DAC_CH1&2.
You leave jshAnalogOutput to set the pins themselves up. The idea is that
jshSetOutputValue
is fast since it runs in an IRQ - you don't want it having to configure pin states each time a value is written.