Documentation
¶
Overview ¶
Package lilt runs the UI. Start binds a screen and spins up the UI goroutine, which owns the tree from then on; Pause freezes it and Stop ends it. Everything else lives in packages ui and widget.
lilt.Start(screen, home)
select {} // or run board code here
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FPS = 60
FPS caps the frame rate. It is read every frame.
Functions ¶
func Pause ¶
func Pause()
Pause stops updating and drawing until Start is called again. Keys arriving meanwhile wait in the input queue, dropped once it is full.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package anim drives every moving value in the framework with one shared spring model, so motion feels consistent across widgets.
|
Package anim drives every moving value in the framework with one shared spring model, so motion feels consistent across widgets. |
|
cmd
|
|
|
docgif
command
Command docgif records the animated demos of the documentation site.
|
Command docgif records the animated demos of the documentation site. |
|
preview
command
Command preview runs the gallery on the host against a scripted key timeline and writes an animated GIF of the session plus a PNG contact sheet of marked moments.
|
Command preview runs the gallery on the host against a scripted key timeline and writes an animated GIF of the session plus a PNG contact sheet of marked moments. |
|
sim
command
Command sim runs the lilt gallery in a window on the desktop, or in a browser when built for wasm.
|
Command sim runs the lilt gallery in a window on the desktop, or in a browser when built for wasm. |
|
driver
|
|
|
desktop
Package desktop runs a lilt UI in a window, standing in for the handheld: a one-bit screen scaled up, and the keys on the keyboard.
|
Package desktop runs a lilt UI in a window, standing in for the handheld: a one-bit screen scaled up, and the keys on the keyboard. |
|
sh1106
Package sh1106 implements a driver for the SH1106 monochrome OLED controller over SPI.
|
Package sh1106 implements a driver for the SH1106 monochrome OLED controller over SPI. |
|
silent
Package silent is a display driver that draws into memory and shows nothing.
|
Package silent is a display driver that draws into memory and shows nothing. |
|
examples
|
|
|
esp32s3-generic
command
Command esp32s3-generic runs the lilt gallery on an ESP32-S3 with a 128x64 SH1106 over SPI, a five-way joystick and SET and RST keys.
|
Command esp32s3-generic runs the lilt gallery on an ESP32-S3 with a 128x64 SH1106 over SPI, a five-way joystick and SET and RST keys. |
|
gallery
Package gallery is a demo of every standard widget, shared by the firmware example and the host preview.
|
Package gallery is a demo of every standard widget, shared by the firmware example and the host preview. |
|
Package gfx is the drawing layer: the Screen interface a display driver implements, and a Canvas that adds clipping, translation and shapes on top.
|
Package gfx is the drawing layer: the Screen interface a display driver implements, and a Canvas that adds clipping, translation and shapes on top. |
|
internal
|
|
|
core
Package core holds the hooks package ui installs for driving the frame loop.
|
Package core holds the hooks package ui installs for driving the frame loop. |
|
reel
Package reel replays a scripted key timeline against a UI on a silent screen and records it as an animated GIF plus stills of marked moments.
|
Package reel replays a scripted key timeline against a UI on a silent screen and records it as an animated GIF plus stills of marked moments. |
|
Package widget is the standard component set built on package ui.
|
Package widget is the standard component set built on package ui. |
Click to show internal directories.
Click to hide internal directories.