ws2812: support thingplus-rp2040 board

Added 125 MHz rp2040 timing
  Added unsafe.Pointer for pointer conversion
This commit is contained in:
Olaf Flebbe
2022-04-30 23:45:28 +02:00
committed by Ron Evans
parent 3bdab45452
commit df0d0d29a4
7 changed files with 335 additions and 11 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
//go:build !digispark && !arduino && !qtpy && !m5stamp_c3
// +build !digispark,!arduino,!qtpy,!m5stamp_c3
//go:build !digispark && !arduino && !qtpy && !m5stamp_c3 && !thingplus_rp2040
// +build !digispark,!arduino,!qtpy,!m5stamp_c3,!thingplus_rp2040
package main
+13
View File
@@ -0,0 +1,13 @@
//go:build thingplus_rp2040
// +build thingplus_rp2040
package main
import "machine"
// This is the pin assignment for the internal neopixel of the
// Sparkfun thingplus rp2040.
// Replace neo and led in the code below to match the pin
// that you are using if different.
var neo machine.Pin = machine.GPIO8
var led = machine.LED