Plasma Stick 2040 W - on board led and button

Hi All, love all the examples, board works great, just wanted to see if on board led and button also works. sorry if I missed this documented elsewhere.

it tried the pico way, didn’t seem to work:

from machine import Pin
led = Pin(25, Pin.OUT)
led.toggle()
or
led.value(1)

for buttons, it seems like BOOTSEL button should work like user input?

from plasma import plasma2040
button_boot = Button(plasma2040.USER_SW)
state = button_boot.read()

this appears to compile without errors but didn’t detect presses.

The on board led on a pico w uses different coode.
import machine
led = machine.Pin(“LED”, machine.Pin.OUT)
led.off()
led.on()

1 Like

You can’t use the boot select button that way. It’s not readable via code, due to how it’s wired up.

led = machine.Pin(“LED”, machine.Pin.OUT)

cheers for that, it worked.
out of curiosity, did you find that documented anywhere?

Somebody asked the same thing on the Raspberry Pi Forum, and that was the responce. There was no link to any documentation.

1 Like

It’s pretty easy to get the gpio pins on a pico w working with a simple button or switch if that’s what you need.

1 Like

I was just curious what’s possible and what isn’t with existing buttons, some other pimoroni pico based boards, Boot button is readable as well.

designing 3d printed case, wondered if access to internal led and button was worth leaving accessible. Existing button helps with user input without extra soldering.

The boards with an RP2040 chip soldered on (not a full PICO) have the Boot Button wired up to be also used as a user button. They add a few components to make that happen.
When you switch to the PICO W Board, you can’t do that. It’s not accessable via the boards edge contacts.
On a PICO W the WIFI is already certified. If you go PICO W onboard, you don’t have to get your WIFI setup recertified, which is expensive. ;)

1 Like