# Possible to increase the PWM resolution?

**URL:** <https://forum.xod.io/t/possible-to-increase-the-pwm-resolution/6124>\
**Category:** XOD Programming Questions\
**Created:** [June 23, 2022, 12:10pm UTC](https://forum.xod.io/t/possible-to-increase-the-pwm-resolution/6124 "2022-06-23T12:10:27Z")\
**Posts on this page:** 1\
**Showing post:** 31

<div class="post-metadata">

**Author:** ![jacob-wiqvist](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@jacob-wiqvist](https://forum.xod.io/u/jacob-wiqvist)\
**Post date:** [June 30, 2022, 7:45am UTC](https://forum.xod.io/t/possible-to-increase-the-pwm-resolution/6124/31 "2022-06-30T07:45:09Z")

</div>

> [@gweimer](#):
>
> ```auto
> #ifdef PWMRANGE
> static constexpr Number pwmRange = PWMRANGE;
> #else
> static constexpr Number pwmRange = 255.0;
> #endif
> 
> ```

I changed it to 12-bit and 14-bit and it works with PWM.

 ![Skärmbild 2022-06-30 094744](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/2/2ec46507d816512b712c4e8cb2cf3a6880075ea6.png)

Unfortunatly it dose not work with led- node.

Pictures below are the led node.  
I guess I must change the table?

 ![Skärmbild 2022-06-30 094858](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/4/48a6a1d4a692b7118433a30705d4224f83aca450.png)  
 ![Skärmbild 2022-06-30 094939](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/d/dbc7b251b917a34e51b9c7f831a16fc6c01dfb04.png)

Can someone help me change led node/table/calculation so it works with 12 and 14-bit.

Best regards Jacob!

---

_[View the full topic](https://forum.xod.io/t/possible-to-increase-the-pwm-resolution/6124)._
