Checkpoint
This commit is contained in:
160 files changed
+76293
-387
No files matched your search
@@ -0,0 +1,28 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user