Device-os: Allow changing the PWM and DAC resolution

Created on 27 Jan 2016  路  9Comments  路  Source: particle-iot/device-os

Add analogWriteResolution to allow changing the PWM and DAC resolution from 8 bits to up to 16 bits (that many bits may not be available on the hardware).

Community post http://community.particle.io/t/photon-pwm-resolution/19395/9

See https://www.arduino.cc/en/Reference/AnalogWriteResolution for specification

Most helpful comment

I hear you. This is something I have on my list of things to do.

All 9 comments

Relates to #213, which closed when analogWrite() was extended to allow the frequency to be set.

I missed that #213 was asking for both resolution and frequency improvements :flushed:

Hi, everyone, not meaning to push, but was wondering what is the process / how long for an idea like this? Cheers

@m-mcgowan Echoing @andyggraves. This would be really, really helpful for me too.

I hear you. This is something I have on my list of things to do.

@monkbroc Thank you very much!

This is wonderful, thank you.
Will it become available on the web build UI?

Hi Guys,
I am trying to use the new exciting analogueWriteResolution function but it does not seem to be recognised "particle build" where am i going wrong?
Thanks
Andy

This hasn't been merged into the release branch yet - there are still some tasks to be completed first.

Was this page helpful?
0 / 5 - 0 ratings