Files
drivers/ws2812/ws2812_generic.go
2021-09-16 18:31:33 +02:00

18 lines
345 B
Go

//go:build !baremetal
// +build !baremetal
package ws2812
// This file implements the WS2812 protocol for simulation.
import "machine"
// Send a single byte using the WS2812 protocol.
func (d Device) WriteByte(c byte) error {
writeByte(d.Pin, c)
return nil
}
//go:export __tinygo_ws2812_write_byte
func writeByte(pin machine.Pin, c byte)