adds 9x6 font to switch, adds make commands

This commit is contained in:
2023-12-21 10:21:14 -05:00
parent 5343f26ad9
commit 15b6d71bc4
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -1 +1,9 @@
setup:
cd go-rpi-rgb-led-matrix/lib/rpi-rgb-led-matrix
make
run:
sudo go run cmd/rpi/main.go --led-slowdown-gpio=2
build:
go build cmd/rpi/main.go
+2
View File
@@ -66,6 +66,8 @@ func (s *Slot) Update(text []Segment) error {
font = fonts.Face5x4
case 7:
font = fonts.Face7x5
case 9:
font = fonts.Face9x6
default:
return fmt.Errorf("%w: %d", ErrUnsupportedSlotHeight, s.segmentHeight)
}