Documentation ¶
Index ¶
- func KeyPins() keys.Pins
- func LedPins(ledState chan LedState) led.Pins
- func NewWebsocketEndpoint(input chan Message, output chan Message) http.HandlerFunc
- func StartServer(ctx context.Context) (led.Pins, keys.Pins, display.UpdateChannel, chan string)
- type KeyStateReceiver
- type LedState
- type LedStateNotifier
- type Message
- type MessageBuffer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWebsocketEndpoint ¶
func NewWebsocketEndpoint(input chan Message, output chan Message) http.HandlerFunc
Types ¶
type KeyStateReceiver ¶
type KeyStateReceiver chan bool
func Key ¶
func Key() KeyStateReceiver
func (KeyStateReceiver) IsKeyPressed ¶
func (k KeyStateReceiver) IsKeyPressed() bool
type LedStateNotifier ¶
func (LedStateNotifier) High ¶
func (l LedStateNotifier) High()
func (LedStateNotifier) Low ¶
func (l LedStateNotifier) Low()
type MessageBuffer ¶
type MessageBuffer struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.