BBS:      TELESC.NET.BR
Assunto:  Re: Baremetal programiing the Pimoroni Tiny2040 RGB LED
De:       Daniel James
Data:     Sun, 18 Jan 2026 12:37:31 +0000
-----------------------------------------------------------
On 17/01/2026 15:21, Single Stage to Orbit wrote:
> The funny thing is that the Pimoroni tiny2040 that I also have has a
> RGB LED on it, there's no data sheet for it but it appears to be
> reversed, in that all the GPIO pins attached to this LED are all active
> low, (i.e ~R GPIO18, ~B GPIO19, ~G GPIO20) so works in the opposite way
> to the LED on GPIO 25 on rp2040!

Did you read Pimoroni's own website entry for that part?

https://shop.pimoroni.com/products/tiny-2040

where it says:

*Notes*

   * The RGB LED is connected to GP18-GP20 and active low (so the
     on/off state will work in the opposite way to the LED on a
     Raspberry Pi Pico). You can PWM the pins to dim the LED - check
     out Tonygo2's MicroPython example.

The example cited is Python, so not directly of use to you, but here is 
the link, anyway:

https://forums.pimoroni.com/t/tiny-2040-rgb-led-control-tutorial/16604


-- 
Cheers,
  Daniel.

--- PyGate Linux v1.5.2
 * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)

-----------------------------------------------------------
[Voltar]