microsoft / devicescript

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

board schema refuses LED pin #626

Closed pelikhan closed 9 months ago

pelikhan commented 9 months ago

Schema is too restrictive?

image

https://github.com/microsoft/devicescript-esp32/blob/main/boards/esp32c3/esp32_c3fh4_rgb.board.json#L33

mmoskal commented 9 months ago

Didn't figure out how to allow extra properties. We could just not list any options here (and lose any intellisense)

pelikhan commented 9 months ago

can we add "LEDS" to the mix? it's a common sceneraio. We used to have a lot of 'well-known' pin names in makecode.