Files
beatglow/cmd/test/beatglow-boot/main.go
T
2026-10-29 17:29:41 +01:00

29 lines
461 B
Go

package main
import (
"periph.io/x/host/v3"
"github.com/BeatGlow/BeatGlow/config"
"github.com/BeatGlow/BeatGlow/hardware"
"github.com/BeatGlow/BeatGlow/ui"
)
func main() {
if _, err := host.Init(); err != nil {
panic(err)
}
output, err := hardware.Display(&config.DisplayConfig{
Mode: "SPI",
Type: "SSD1322",
Reset: "GPIO25",
DC: "GPIO24",
})
if err != nil {
panic(err)
}
if err = ui.Boot(output); err != nil {
panic(err)
}
}