Only 2 DAC channel supported ?

Posted on
  • As far as I can see, there are only 2 DAC channel supported.
    So for jshSetOutputValue in jshardware.c there is no pin information available(directly)
    Is this correct ?

  • 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)

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

Only 2 DAC channel supported ?

Posted by Avatar for JumJum @JumJum