tinygo-org / tinygo

Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
https://tinygo.org
Other
15.41k stars 909 forks source link

DotStar support for the itsybitsy m0 #2591

Closed Elara6331 closed 2 years ago

Elara6331 commented 2 years ago

The itsybitsy m0 and some other adafruit boards have an integrated DotStar LED. There is currently no support for it in TinyGo as far as I can tell.

Here is the arduino library for DotStar LEDs: https://github.com/adafruit/Adafruit_DotStar

deadprogram commented 2 years ago

The DotStar is actually an APA102. Please see https://github.com/tinygo-org/drivers/tree/release/examples/apa102

Elara6331 commented 2 years ago

That should probably be documented somewhere, or at least have a pin alias for it similar to machine.NEOPIXEL.

deadprogram commented 2 years ago

Perhaps you would like to submit a PR to the TinyGo site? See https://github.com/tinygo-org/tinygo-site

Elara6331 commented 2 years ago

Perhaps you would like to submit a PR to the TinyGo site? See https://github.com/tinygo-org/tinygo-site

Yes, thank you, I can do that. Where would be a good place to document this? Would I put it in the microcontrollers page for all the boards with a DotStar? Or maybe it's better to make a dedicated page for DotStar.

deadprogram commented 2 years ago

Would I put it in the microcontrollers page for all the boards with a DotStar?

I would suggest add to each, with something in the "Notes" section.

https://github.com/tinygo-org/tinygo-site/blob/release/content/docs/reference/microcontrollers/itsybitsy-m0.md#notes

Elara6331 commented 2 years ago

Closed since the PR was merged.