RP2040 Controlling the LED Brightness
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- hazer
- Posts: 18
- Joined: Fri Feb 07, 2014 5:30 pm
RP2040 Controlling the LED Brightness
How would I control the brightness of the LED's on the RP2040? I am able to change the colors, but I have not found a way to control the brightness.
- neradoc
- Posts: 542
- Joined: Wed Apr 27, 2016 2:38 pm
Re: RP2040 Controlling the LED Brightness
Hi, can you tell us more ? What board, what LEDs, what is your code ?
Neopixels and Dotstars have a brightness property to change the overall brightness of the whole group. pixels.brightness = 0.5
To change the brightness of a single pixel you have to change its color by reducing each component.
The fancyLED library has some advance functions for color management:
https://learn.adafruit.com/fancyled-lib ... cuitpython
Neopixels and Dotstars have a brightness property to change the overall brightness of the whole group. pixels.brightness = 0.5
To change the brightness of a single pixel you have to change its color by reducing each component.
The fancyLED library has some advance functions for color management:
https://learn.adafruit.com/fancyled-lib ... cuitpython
- hazer
- Posts: 18
- Joined: Fri Feb 07, 2014 5:30 pm
Re: RP2040 Controlling the LED Brightness
It is the RP2040 -> https://www.adafruit.com/product/5128
Raspberry Pi RP2040 Chip + 8MB Flash memory -
Dual core Cortex M0+ at ~130MHz with 264 KB or RAM.
3x4 Mechanical key switch sockets - accepts any Cherry MX-compatible switches. Individually tied to GPIO pins (not matrix wired)
One NeoPixel RGB LED per switch, on north side
Rotary encoder, 20 detents per rotation, with push-switch on GPIO pin. Push switch is also used for entering bootloader mode when held down on power-up or reset.
128x64 SH1106 Monochrome OLED display - On high speed hardware SPI port for quick updates
Raspberry Pi RP2040 Chip + 8MB Flash memory -
Dual core Cortex M0+ at ~130MHz with 264 KB or RAM.
3x4 Mechanical key switch sockets - accepts any Cherry MX-compatible switches. Individually tied to GPIO pins (not matrix wired)
One NeoPixel RGB LED per switch, on north side
Rotary encoder, 20 detents per rotation, with push-switch on GPIO pin. Push switch is also used for entering bootloader mode when held down on power-up or reset.
128x64 SH1106 Monochrome OLED display - On high speed hardware SPI port for quick updates
Please be positive and constructive with your questions and comments.