# PWM on the Keybow 2040

**URL:** <https://forums.pimoroni.com/t/pwm-on-the-keybow-2040/18730>\
**Category:** Support\
**Created:** [January 26, 2022, 7:42am UTC](https://forums.pimoroni.com/t/pwm-on-the-keybow-2040/18730 "2022-01-26T07:42:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhanarato](https://avatars.discourse-cdn.com/v4/letter/j/ccd318/32.png) [@jhanarato](https://forums.pimoroni.com/u/jhanarato)\
**Post date:** [January 26, 2022, 7:42am UTC](https://forums.pimoroni.com/t/pwm-on-the-keybow-2040/18730/1 "2022-01-26T07:42:20Z")

</div>

G’day,

Going by the product description:

Per key RGB LEDs driven by an IS31FL3731 PWM LED matrix driver

I’m guessing that I can use PWM on the Keybow 2040 to dim my LEDs. Is this possible?

Many thanks,

J.R.

---

<div class="post-metadata">

**Author:** ![jhanarato](https://avatars.discourse-cdn.com/v4/letter/j/ccd318/32.png) [@jhanarato](https://forums.pimoroni.com/u/jhanarato)\
**Post date:** [January 26, 2022, 8:18am UTC](https://forums.pimoroni.com/t/pwm-on-the-keybow-2040/18730/2 "2022-01-26T08:18:33Z")

</div>

OK, I think I need to start here:

> **[GitHub - adafruit/Adafruit\_CircuitPython\_IS31FL3731: CircuitPython driver for...](https://github.com/adafruit/Adafruit_CircuitPython_IS31FL3731)**
>
> CircuitPython driver for the IS31FL3731 charlieplex IC - GitHub - adafruit/Adafruit\_CircuitPython\_IS31FL3731: CircuitPython driver for the IS31FL3731 charlieplex IC

---

<div class="post-metadata">

**Author:** ![jhanarato](https://avatars.discourse-cdn.com/v4/letter/j/ccd318/32.png) [@jhanarato](https://forums.pimoroni.com/u/jhanarato)\
**Post date:** [March 6, 2022, 9:47am UTC](https://forums.pimoroni.com/t/pwm-on-the-keybow-2040/18730/3 "2022-03-06T09:47:45Z")

</div>

For any who follow in my path, it is super simple to change the brightness.

```auto
# Set first key to dim red
pmk.keys[0].set_led(10, 0, 0)

# Set first key to bright red
pmk.keys[0].set_led(255, 0, 0)

```

Happy hacking!
