Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for setStatusLight in pico-w #404

Closed
pelikhan opened this issue May 25, 2023 · 7 comments
Closed

Add support for setStatusLight in pico-w #404

pelikhan opened this issue May 25, 2023 · 7 comments
Labels
bug Something isn't working driver request enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed rp2040

Comments

@pelikhan
Copy link
Member

pelikhan commented May 25, 2023

setStatusLight needs to talk to talk to the wireless chip to control the onboatd LED on the pico-w.

@pelikhan pelikhan added bug Something isn't working enhancement New feature or request labels May 26, 2023
@pelikhan pelikhan changed the title Add support for setStatusLight in pico-w Add support for setStatusLight in pico/pico-w May 26, 2023
@pelikhan
Copy link
Member Author

The onboard LED does not seem to work on pico/pico-w

@pelikhan pelikhan changed the title Add support for setStatusLight in pico/pico-w Add support for setStatusLight in pico-w Jun 1, 2023
@pelikhan pelikhan added the help wanted Extra attention is needed label Jun 5, 2023
@lukeh990
Copy link

lukeh990 commented Jun 6, 2023

I'm trying to use setStatusLight on a regular Pico and I get a error reading JDUSB Error: crc err

Here is what the code I'm running in main.ts:

import { setStatusLight } from "@devicescript/runtime";

console.log(":)");
await setStatusLight(1);

@pelikhan
Copy link
Member Author

pelikhan commented Jun 6, 2023 via email

@lukeh990
Copy link

lukeh990 commented Jun 6, 2023

@pelikhan Yes, I just started messing around with devicescript today. Re-Flashing doesn't seem to have an effect.

@pelikhan
Copy link
Member Author

pelikhan commented Jun 6, 2023

we might have been in the middle of upgrading the firware. could you try to upgrade the vscode extension and create a new project for the pico?

@pelikhan
Copy link
Member Author

pelikhan commented Jun 6, 2023

@mmoskal it seems that setStatusLight is not working on the pico itself.

@JackTam1993
Copy link

I met the same problem. the firmware and the vscode extension are the latest.

Raspberry Pi Pico W version: v2.10.900

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working driver request enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed rp2040
Projects
None yet
Development

No branches or pull requests

4 participants