ws2812: add support for m5stamp-c3

This commit is contained in:
sago35
2022-01-27 18:03:00 +09:00
committed by Ron Evans
parent ad3ef92cfe
commit 10bd48c39d
3 changed files with 13 additions and 7 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
//go:build !digispark && !arduino && !qtpy
// +build !digispark,!arduino,!qtpy
//go:build !digispark && !arduino && !qtpy && !m5stamp_c3
// +build !digispark,!arduino,!qtpy,!m5stamp_c3
package main
+11
View File
@@ -0,0 +1,11 @@
//go:build qtpy || m5stamp_c3
// +build qtpy m5stamp_c3
package main
import "machine"
// Replace neo and led in the code below to match the pin
// that you are using if different.
var neo machine.Pin = machine.WS2812
var led = machine.NoPin
-5
View File
@@ -5,11 +5,6 @@ package main
import "machine"
// Replace neo and led in the code below to match the pin
// that you are using if different.
var neo machine.Pin = machine.NEOPIXELS
var led = machine.NoPin
func init() {
pwr := machine.NEOPIXELS_POWER
pwr.Configure(machine.PinConfig{Mode: machine.PinOutput})