mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-07 16:33:39 +00:00
ws2812: support thingplus-rp2040 board
Added 125 MHz rp2040 timing Added unsafe.Pointer for pointer conversion
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user