In development. It changes without notice.
Topics
The parts of the firmware, from how it runs down to the facades it stands on. Each topic opens with what its part does.
By module
- Entry Point & State Dispatch
- Application States
- Vault Storage
- Cryptography
- Security
- Change of Owner & Resets
- One-Time Codes
- Clock & Time Zone
- BLE HID Keyboard
- Wi-Fi Admin Portal
- Network Services
- Update Policy
- User Interface
- Settings Model
- Internationalization
- Brand Lookup & Logo Atlas
- Build Configuration
- Hardware Abstraction Layer
- Device Drivers
- Platform Abstraction
- Utilities
- JSON Reader, Writer and Binder
- Diagnostics
- Serial Debug Console
- QA Host Firmware
Every topic
| Entry Point & State Dispatch | The start of the firmware: the boot, in order, and the loop that runs the active state |
| Application States | The states of the application, what moves it from one to the next, and the handler that runs each |
| State Context & Shared Flows | What every state handler shares: the context and its sleep path, the handler's interface, and the flows that several states run |
| Home Screen | What the home screen shows and does besides settings: the lists, a record's detail, the one-time codes, the choice of a host, the SD card's flows and the edits |
| First-Time Setup | The first use of a board: its keys, the language, a rehearsal of each control, the unlock secret, and the pairing of a first computer |
| Settings Screen & Service | The settings screen, its overlays and wizards, and the service that reads and applies an option |
| Shared Screen Parts | The pieces several screens draw or steer by: the header, the lock screen's clock, the Bluetooth chip, the list's motion, and the navigation with two buttons or a dial |
| State Rules | The decisions the handlers take, with no screen, no context and no device behind them, and the list of states itself |
| Vault Storage | The encrypted vault: how logins, one-time-code secrets and saved networks are stored, listed, changed, backed up and re-keyed |
| Record Log & Envelopes | The log the records are appended to, the binary form of a record, and the sealed envelope around it |
| Keys, Metadata & Rotation | The vault's keys, the authenticated metadata that holds them wrapped, what a typed secret becomes before it is derived, and the key rotation |
| Record Repositories | The store of each kind of record: logins, one-time-code secrets and saved networks, with the names of the groups and the order of the lists |
| Backup, Import & Export | The sealed backup the portal and the SD card share, the import of other managers' CSV files, and the SD card's flows |
| Cryptography | From a PIN or passphrase to the keys that seal the vault, the secret bound to the chip, the seal of a backup and the password generator |
| Security | The lockout after wrong secrets, which lasts through a sleep or a cut in power, the log of security events, and the rule for a new secret |
| Change of Owner & Resets | What a factory reset, a vault wipe and a settings reset erase, one sequence for every way of asking for each |
| One-Time Codes | Time-based one-time codes (RFC 6238): making one from the secret in the vault, and the gate that refuses when the clock cannot be trusted |
| Clock & Time Zone | The wall clock and how far it is trusted, what set it last, and the time zones with their daylight-saving rules |
| BLE HID Keyboard | The board as a Bluetooth keyboard: advertising, pairing, the bonded hosts, and typing |
| BLE Facade & HID Manager | The one entry point to Bluetooth for the screens and the portal, and the manager that runs the keyboard service behind it |
| BLE Stack Integration | The owner of NimBLE on core 0: the stack's task, the queue of commands to it and the bus of events from it |
| Bond Storage | The bonded hosts: their identity, the name the owner gave each, their order, and the removal of one |
| BLE Connection Management | The state of the link as one coherent snapshot, and the parameters of a connection and of advertising |
| HID Profiles & Keyboard Tables | From text to key presses: the typer, the codes of the keys, and the accented letters each keyboard layout can type |
| Pairing & Numeric Comparison | Who may pair, connect and receive keystrokes, and the prompt that compares six digits on both screens |
| BLE Types | The values every part of Bluetooth speaks: the keyboard layouts, the commands and events, the state of a session and of the stack, and the record of a host |
| Wi-Fi Admin Portal | The web pages the board serves to one browser over its own Wi-Fi: to edit the vault, back it up, change settings and install an update |
| Admin Portal Rules | The decisions the portal's routes take, with no server behind them |
| Display Stream | The video of the display that a debug build sends to the tests |
| Network Services | The time from the network, the Wi-Fi session that fetches it, the portal's network name, and the request for the portal after a restart |
| Update Policy | What a boot decides after an update: to keep the new firmware, to refuse it, or to say that the board went back to the previous one |
| User Interface | Everything the screen shows: drawing, components, the unlock entry (PIN or passphrase), popups and notices, brand logos and the on-screen keyboard |
| Unlock Entry | How the owner enters the secret, by board: a dialed PIN, a touch keypad or a keyboard |
| Canvas, Theme & Layout | What every screen draws with: the canvas, the design tokens, the theme, the roles of text and the rules of layout |
| Buttons & Gestures | The gestures every screen and both dial styles rely on, over the input sources |
| Interface Components | Buttons, lists, dialogs, steppers, keyboards and the rest, each drawn from the values it is given |
| Reusable Widgets | A scrolling menu that every board drives with its own inputs, and the header's chip that says the clock is not set |
| Settings View Model | How a setting reads on the screen: its value in words, what handles it on a keyboard panel, and the tables of device information |
| Login Detail View Model | What the detail of a login shows and where each key leads, the sentences about a record, and what a refused one-time code offers |
| Popups & Modals | Toasts, spinners, confirmations and alerts, drawn over any screen |
| Notifications | Notices about the battery, the link, the portal, the lock and an update, shown once and not again until the state really changes |
| Brand Logos | The drawing of a service's logo, at the size a screen has for it |
| Render Canvas | The canvas over the display, the smooth shapes it draws, and the choice of how an e-paper panel refreshes |
| Settings Model | The options a device has, once for every surface that shows them: their groups, their values and the words for each |
| Internationalization | The interface's text by name, in English, Spanish, French, German and Italian |
| Brand Lookup & Logo Atlas | From the address or the name in a login to the service's logo |
| Build Configuration | What the board being built has, as constants |
| Hardware Abstraction Layer | What the application calls instead of a chip: display, input, power and battery, motion, sound, SD card, clock and GPS |
| Board Description | The record of a board's hardware, where it is registered, and how often a chip that has to be polled is read |
| Board Bring-up | The start of a board's hardware and its update on each tick |
| Input Sources & the Wake Rule | Buttons, keyboards, trackball and touch behind four interfaces, and the rule that the first input on a dark panel only wakes it |
| Power, Battery & Parking | How each board sleeps, why it woke, what its battery says, and how hardware that nothing is using is switched off |
| Motion & Shake-to-Lock | The shake that locks the device, and the motion sensor behind it |
| SD Card | The SD card: mounting it for as long as an action lasts, formatting it, and settling it at boot, on the boards that have a slot |
| Display | The panel: its surface, its text, its frames and its light |
| Sound: Catalog, Renderers & Speaker | The sounds as data, the two renderers that turn one into what a board plays, and the task that plays it |
| Clock Chip Back End | The wall clock kept by a BM8563 chip, on the boards that have one |
| GPS Time Sync | The time from a GPS receiver: one sync when the owner asks for it, and the receiver at rest otherwise |
| Board Configurations | One source for each board, which creates its parts and registers the record of them |
| Board-Specific Support | The power managers that only one board uses: the CoreInk's, the LILYGO T-Deck's and the M5Cardputer ADV's |
| Device Drivers | One driver for each chip: panels, power chips, motion sensors, clock, touch, keyboards, trackball, audio and GPS |
| Display Panel Drivers | The controllers of the panels: ST7789 and ILI9342 for color, SSD1681 and JD79653A for e-paper |
| Power Chip Drivers | The power chips: battery, power key, the supply of the parts, and switching the board off |
| Motion Sensor Drivers | The BMI270 and MPU6886 motion sensors, and a stand-in for the boards with none |
| Clock Chip Driver | The BM8563 clock chip |
| Touch Controller Drivers | The FT6x36 and GT911 touch controllers |
| Keyboard Drivers | The M5Cardputer ADV's key-matrix controller and the LILYGO T-Deck's keyboard |
| Trackball Driver | The trackball: four direction lines and a click |
| Audio Drivers | The ES8311 codec, the ES7210 microphone converter, the AW88298 amplifier, and amplifiers switched by a power chip or a pin |
| I2C Bus | The board's internal I2C bus, and reading and writing the registers of a chip on it |
| GPS Receiver Drivers | The GPS receivers the LILYGO T-Deck can carry, the probe that finds which one is fitted, and the park that keeps it asleep |
| Register Introspection | The tables of a chip's registers that the serial console prints |
| Platform Abstraction | The facades over ESP-IDF and FreeRTOS that the firmware calls |
| RTOS Facade | Tasks and the core each runs on, queues, semaphores, critical sections, delays and the task watchdog |
| Storage | LittleFS, NVS, the SD card's file system, the writer of updates, and what the security fuses say |
| Wi-Fi & HTTP Server | Wi-Fi as an access point and as a station, the HTTP server, the time from the network, and addresses |
| GPIO & Buses | GPIO, I2C, SPI, UART, PWM, I2S and ADC, the USB pads, the die's temperature, and the lock of the crypto hardware |
| Power, Sleep & System Control | Deep and light sleep and what ends them, the CPU clock, the slow clock that counts through a sleep, and the record of a crash |
| Monotonic Clock & Deadlines | The time since boot, and deadlines that stay right when it wraps |
| Random Numbers | Random bytes from the chip's hardware generator |
| Logging | The log: one macro for each level, dropped when it is compiled below the level of the build |
| Serial Transport | The serial line of a debug build, over a UART or the chip's USB |
| Platform Memory & Errors | Large blocks of memory, the record of an allocation that failed, names of errors, and where the compiler places a function or a variable |
| Main Loop & Hooks | The task that runs the firmware, and the hooks through which code calls a module above it without knowing it |
| Utilities | Text, lists and queues that never use the heap, a checksum, and a wipe the compiler cannot drop |
| Safe Strings | Copies, comparisons and searches of C text that stay inside the space they are given |
| Fixed-Capacity Containers | Text, lists, queues and functions that keep what they hold inside themselves and never allocate |
| JSON Reader, Writer and Binder | JSON read in pieces, written to a sink and bound to a record by a table, with no allocation |
| Diagnostics | What a board reports of itself: the log's queue, memory and tasks, the time spent drawing, and an estimate of what it draws |
| Serial Debug Console | The serial console of a debug build, which drives a board from a cable. No other image holds it |
| QA Host Firmware | The firmware of a test host: a board that plays the computer, over Bluetooth or on the portal's Wi-Fi |