mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-07-26 10:38:41 +00:00
1d695a231a
This adds support to the WS2812 for the ESP32-C3 processor which is a RISC-V processor from Espressif. Signed-off-by: deadprogram <ron@hybridgroup.com>
12 lines
226 B
Go
12 lines
226 B
Go
//go:build !digispark && !arduino && !arduino_uno && !xiao_esp32c3
|
|
|
|
package main
|
|
|
|
import "machine"
|
|
|
|
func init() {
|
|
// Replace neo in the code below to match the pin
|
|
// that you are using if different.
|
|
neo = machine.WS2812
|
|
}
|