Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.raspberry-pi > #37690
| From | Single Stage to Orbit <alex.buell@munted.eu> |
|---|---|
| Newsgroups | comp.sys.raspberry-pi |
| Subject | Re: Baremetal programiing the Pimoroni Tiny2040 RGB LED |
| Date | 2026-01-17 15:21 +0000 |
| Organization | One very high maintenance cat |
| Message-ID | <be0b48e4a9aa74e87d18d03edbbace7103176e96.camel@munted.eu> (permalink) |
| References | <d03091c18c489926db7aef8286bf865162298441.camel@munted.eu> <10k2k3j$29cbj$1@dont-email.me> |
On Mon, 2026-01-12 at 10:57 +0000, Gordon Henderson wrote: > > like to know how to do it baremetal with ARM thumb assembly. > > ... my use is the RISC-V cores in the rp2350, so bare metal RISC-V > asembly.... But the principle for programming the PWM generators > is more or less the same from eith CPU, so I understand, but it's > something I've not gotten round to. > > I'd suggest to have a look at the manual and SDK and see how to do it > from C then hand translate the C code into ASM... I've found the following: https://github.com/thejpster/rp-hal-rp2350-public/blob/main/rp235x-hal/examples/pwm_blink.rs Looks like this is what I've been looking for. 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! -- Tactical Nuclear Kittens
Back to comp.sys.raspberry-pi | Previous | Next — Previous in thread | Next in thread | Find similar
Baremetal programiing the Pimoroni Tiny2040 RGB LED Single Stage to Orbit <alex.buell@munted.eu> - 2026-01-11 16:15 +0000
Re: Baremetal programiing the Pimoroni Tiny2040 RGB LED Daniel James <daniel@me.invalid> - 2026-01-11 18:52 +0000
Re: Baremetal programiing the Pimoroni Tiny2040 RGB LED Single Stage to Orbit <alex.buell@munted.eu> - 2026-01-17 15:04 +0000
Re: Baremetal programiing the Pimoroni Tiny2040 RGB LED The Natural Philosopher <tnp@invalid.invalid> - 2026-01-11 19:36 +0000
Re: Baremetal programiing the Pimoroni Tiny2040 RGB LED Single Stage to Orbit <alex.buell@munted.eu> - 2026-01-17 15:07 +0000
Re: Baremetal programiing the Pimoroni Tiny2040 RGB LED Gordon Henderson <gordon+usenet@drogon.net> - 2026-01-12 10:57 +0000
Re: Baremetal programiing the Pimoroni Tiny2040 RGB LED Single Stage to Orbit <alex.buell@munted.eu> - 2026-01-17 15:21 +0000
Re: Baremetal programiing the Pimoroni Tiny2040 RGB LED Michael Schwingen <news-1513678000@discworld.dascon.de> - 2026-01-18 10:32 +0000
Re: Baremetal programiing the Pimoroni Tiny2040 RGB LED Daniel James <daniel@me.invalid> - 2026-01-18 12:37 +0000
csiph-web