mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-31 03:49:02 +00:00
Simplify examples/ws2812
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
//go:build !digispark && !arduino && !qtpy && !m5stamp_c3 && !thingplus_rp2040
|
||||
//go:build !digispark && !arduino
|
||||
|
||||
package main
|
||||
|
||||
import "machine"
|
||||
|
||||
// Replace neo and led in the code below to match the pin
|
||||
// Replace neo in the code below to match the pin
|
||||
// that you are using if different.
|
||||
var neo machine.Pin = machine.WS2812
|
||||
var led = machine.LED
|
||||
|
||||
Reference in New Issue
Block a user