devicescript icon indicating copy to clipboard operation
devicescript copied to clipboard

Add support for setStatusLight in pico/pico-w

Open pelikhan opened this issue 1 year ago • 1 comments

Need to talk to the wireless chip to control that LED.

pelikhan avatar May 25 '23 15:05 pelikhan

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

pelikhan avatar May 26 '23 16:05 pelikhan

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);

lukeh990 avatar Jun 06 '23 01:06 lukeh990

Is this a fresh install? Could you try to flash the firmware again. We just did a release with sockets support.


From: Luke Harding @.> Sent: Monday, June 5, 2023 6:48:52 PM To: microsoft/devicescript @.> Cc: Peli de Halleux @.>; Author @.> Subject: Re: [microsoft/devicescript] Add support for setStatusLight in pico-w (Issue #404)

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 @.***/runtime";

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

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/devicescript/issues/404#issuecomment-1577771514, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA73QKLM7G6OS625YI5IQV3XJ2EAJANCNFSM6AAAAAAYPAB3SE. You are receiving this because you authored the thread.Message ID: @.***>

pelikhan avatar Jun 06 '23 01:06 pelikhan

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

lukeh990 avatar Jun 06 '23 02:06 lukeh990

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 avatar Jun 06 '23 04:06 pelikhan

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

pelikhan avatar Jun 06 '23 04:06 pelikhan

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

Raspberry Pi Pico W version: v2.10.900

JackTam1993 avatar Jun 08 '23 11:06 JackTam1993