-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlifecycle.go
More file actions
37 lines (30 loc) · 773 Bytes
/
lifecycle.go
File metadata and controls
37 lines (30 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package bootstrap // import bootstrap "github.com/heucuva/europi-bootstrap"
import (
"time"
europi "github.com/awonak/EuroPiGo"
)
func DefaultPostBootstrapInitialization(e europi.Hardware) {
display := europi.Display(e)
if display == nil {
// no display, can't continue
return
}
display.ClearBuffer()
if err := display.Display(); err != nil {
panic(err)
}
}
func DefaultBootstrapCompleted(e europi.Hardware) {
display := europi.Display(e)
if display == nil {
// no display, can't continue
return
}
display.ClearBuffer()
if err := display.Display(); err != nil {
panic(err)
}
}
// DefaultMainLoop is the default main loop used if a new one is not specified to Bootstrap()
func DefaultMainLoop(e europi.Hardware, deltaTime time.Duration) {
}