microsoft / devicescript

TypeScript for Tiny IoT Devices (ESP32, RP2040, ...)
https://microsoft.github.io/devicescript/
MIT License
3.28k stars 118 forks source link

Pico W internal light #402

Closed zackify closed 1 year ago

zackify commented 1 year ago

I don't see a way to turn on the internal light on the pico w with the startLightBulb command. I searched the issues a lot and the docs. Sorry if this was explained elsewhere.

pelikhan commented 1 year ago

You are right, looks like we haven't updated the hardware configuration with led info

https://microsoft.github.io/devicescript/devices/rp2040/pico-w

pelikhan commented 1 year ago

It looks like the LED is connected to the wireless chip, not the RP2040, on the pico-w so we cannot control it with the startLightbulb function.

pelikhan commented 1 year ago

@mmoskal can we update the board description to callout that the LED is not available?

pelikhan commented 1 year ago

You can also try to use setStatusLight https://microsoft.github.io/devicescript/developer/status-light