# Portenta H7 RGB LED intensity control

**URL:** <https://forums.openmv.io/t/portenta-h7-rgb-led-intensity-control/11528>\
**Category:** Arduino Boards\
**Created:** [February 18, 2026, 4:27am UTC](https://forums.openmv.io/t/portenta-h7-rgb-led-intensity-control/11528 "2026-02-18T04:27:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prithulc](https://avatars.discourse-cdn.com/v4/letter/p/7bcc69/32.png) [@prithulc](https://forums.openmv.io/u/prithulc)\
**Post date:** [February 18, 2026, 4:27am UTC](https://forums.openmv.io/t/portenta-h7-rgb-led-intensity-control/11528/1 "2026-02-18T04:27:50Z")

</div>

Hi, as per [Arduino Portenta H7 MicroPython Cheat Sheet | Arduino Documentation](https://docs.arduino.cc/tutorials/portenta-h7/openmv-cheat-sheet/#rgb-led:~:text=You%20could%20also%20set%20a%20custom%20intensity%20for%20our%20LED%20lights.), the RGB LED intensity should be configurable by defining between [0, 255]. I don’t think it’s working though. I ran the following program to check and the intensity values of extremes seem to be inverted

```python
import pyb

r_led = pyb.LED(1)

r_led.intensity(0) # LED off
print(r_led.intensity())
pyb.delay(5000)

r_led.intensity(100) # LED mid intensity
print(r_led.intensity())
pyb.delay(5000)

r_led.intensity(255) # LED full intensity
print(r_led.intensity())
pyb.delay(5000)

```

Output:

```auto
OpenMV v4.8.1; MicroPython v1.26.0-77; Arduino Portenta H7 with STM32H747
Type "help()" for more information.
>>> 255
0
0

```

I suspect this is not a usable feature since there’s no `pyb.LED(`_`id`_`).intensity()` in [class LED – LED object — MicroPython 1.26 documentation](https://docs.openmv.io/library/pyb.LED.html). Could you kindly confirm?

PC

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [February 18, 2026, 4:43am UTC](https://forums.openmv.io/t/portenta-h7-rgb-led-intensity-control/11528/2 "2026-02-18T04:43:00Z")

</div>

Hi, LED intensity control on any STM32H7 boards is not preserved. The Timer used for that was used for the camera pixel clock.

---

<div class="post-metadata">

**Author:** ![prithulc](https://avatars.discourse-cdn.com/v4/letter/p/7bcc69/32.png) [@prithulc](https://forums.openmv.io/u/prithulc)\
**Post date:** [February 18, 2026, 4:59am UTC](https://forums.openmv.io/t/portenta-h7-rgb-led-intensity-control/11528/3 "2026-02-18T04:59:36Z")

</div>

Thanks for confirming Kwabena! Perhaps Arduino should update their docs 🙂

PC
