How to get on-board led pin information? #411
-
I found a definition of led pin information in boards.json. devicescript/compiler/src/boards.json Lines 695 to 697 in 9f83802 But it is not included |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
Having the same issue, trying to instantiate it directly with |
Beta Was this translation helpful? Give feedback.
-
For the onboard LED, you would need to use Keep this issue opened to beef up the docs. |
Beta Was this translation helpful? Give feedback.
-
Hi, @pelikhan, thanks for the follow up! Weirdly, I did encounter that section of the docs (and tried it). And on the RPi 2040 at least it's not (currently) working. It compiles and runs with no issue but nothing happens on the board. I tested on 2 different RPis I have here. I was able to simulate a "hello world" with an external led though and didn't explore it much more (was just doing a quick getting started to check the framework) so I can't provide additional info now. But I can come back to it during the weekend and see if I'm able to pinpoint exactly what's happening. |
Beta Was this translation helpful? Give feedback.
-
Improved docs with ecb7c7b |
Beta Was this translation helpful? Give feedback.
For the onboard LED, you would need to use
setStatusLight
--> https://microsoft.github.io/devicescript/developer/status-light . The onboard LED is also used to notify the status of the network stack and is "shared" with the runtime.Keep this issue opened to beef up the docs.