Address review comments

pull/93/head
George Sexton 1 year ago
parent bb852287a0
commit 22e241fab5

@ -12,8 +12,6 @@ import (
"io"
"sync"
// "time"
"periph.io/x/conn/v3"
"periph.io/x/conn/v3/display"
"periph.io/x/conn/v3/gpio"
@ -40,11 +38,12 @@ type LK2047T struct {
// units with LEDS, the pins are used to manipulate them. For the Adafruit
// USB/LCD backpack, 4 pins are exposed.
Pins []gpio.PinOut
d conn.Conn
writer io.Writer
mu sync.Mutex
rows int
cols int
mu sync.Mutex
d conn.Conn
writer io.Writer
chKeyboard chan byte
shutdown chan struct{}
}
@ -336,8 +335,7 @@ func (dev *LK2047T) LED(number int, color LEDColor) error {
if err != nil {
return err
}
err = dev.Pins[number*2+1].Out(gpio.Level(color&Green == Green))
return err
return dev.Pins[number*2+1].Out(gpio.Level(color&Green == Green))
}
func (dev *LK2047T) String() string {

Loading…
Cancel
Save