mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-21 23:19:00 +00:00
ws2812: make AVR support more robust
* Merge AVR support for Digispark and non-Digispark * Fix the error "inline assembly requires more registers than available" * Use a single file for all AVR targets, in a similar style as the Xtensa support.
This commit is contained in:
committed by
Ron Evans
parent
e376785596
commit
df64ce8f50
@@ -2,10 +2,13 @@
|
||||
package ws2812 // import "tinygo.org/x/drivers/ws2812"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"image/color"
|
||||
"machine"
|
||||
)
|
||||
|
||||
var errUnknownClockSpeed = errors.New("ws2812: unknown CPU clock speed")
|
||||
|
||||
// Device wraps a pin object for an easy driver interface.
|
||||
type Device struct {
|
||||
Pin machine.Pin
|
||||
|
||||
Reference in New Issue
Block a user