Only 2 DAC channel supported ? #6746
Unanswered
espruino-discuss
asked this question in
Porting to new Devices
Replies: 1 comment
-
Posted at 2017-01-16 by @gfwilliams 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) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-01-15 by JumJum
As far as I can see, there are only 2 DAC channel supported.
JSH_DAC_CH1 and JSH_DAC_CH2
So for jshSetOutputValue in jshardware.c there is no pin information available(directly)
Is this correct ?
Beta Was this translation helpful? Give feedback.
All reactions