Hi, as per Arduino Portenta H7 MicroPython Cheat Sheet | Arduino Documentation, 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
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:
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. Could you kindly confirm?
PC