tinygo-org / tinygo

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

Enhancing TinyGo Build-Tags with Board-Specific Feature Tags #4230

Open sago35 opened 5 months ago

sago35 commented 5 months ago

I have a proposal to add build-tags representing board-specific features to TinyGo's build-tags. For example, there is currently a build-tag called ninafw added in #4085. Currently, only ninafw is being treated as special.

At the moment, I am considering adding the following build-tags. I believe this will simplify the examples in the drivers repository and provide more detailed information on the tinygo.org pages.

feature_led
feature_ws2812
feature_lcd
    feature_lcd_ili9341
    feature_lcd_st7735
    feature_lcd_...
feature_ninafw
feature_rtl8720dn

By adding these, we can help cases where users are particularly troubled by not knowing the type of LCD.