ws2812: rename WS2812 to Device

This is more consistent with the other drivers.
This commit is contained in:
Ayke van Laethem
2018-11-16 14:55:00 +01:00
parent 947042e435
commit 16a5f82d44
2 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -10,10 +10,10 @@ import (
)
// Send a single byte using the WS2812 protocol.
func (p WS2812) WriteByte(c byte) {
func (d Device) WriteByte(c byte) {
// For the Cortex-M0 at 16MHz
portSet, maskSet := p.Pin.PortMaskSet()
portClear, maskClear := p.Pin.PortMaskClear()
portSet, maskSet := d.Pin.PortMaskSet()
portClear, maskClear := d.Pin.PortMaskClear()
value := uint32(c) << 24
arm.AsmFull(`