Skip to content

meshtastic/device-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meshtastic

Meshtastic device-ui library

A versatile UI library for the meshtastic® project

GitHub last commit GitHub issues Open Collective backers

👋 Introduction

Meshtastic device-ui library for TFT and OLED screens

This C++ library is intended to support the following scenarios with enhanced screen UI:

  • Integrated with meshtastic firmware for LoRa devices with TFT display (or potentially also OLED +PSRAM)
  • Stand-alone TFT+MCU devices such as WT32-SC01, CYD or T-HMI connected with meshtastic LoRa devices
  • Linux based devices with LoRa shield, e.g Raspberry Pi / Milk-V Duo/Mars with TFT display (hat or diy)
  • Native Linux X11 application with SimRadio e.g. for tests, GUI simulation & debugging (MQTT only application)

scenario 1scenario 2scenario 3scenario 4

📝 TODOs

General Architecture

- [ ] Overall design (MVC approach)
  - [x] DisplayDriver inheritance hierarchy
  - [x] DisplayDriver factory
  - [x] TFT Driver
  - [ ] OLED Driver
  - [ ] E-Ink Driver
  - [x] View hierarchy
  - [x] View factory
  - [x] Controller design and interface implementation
  - [x] Controller <-> model interface
    - [x] Packet based thread safe interface
    - [x] serial communication interface
    - [x] protobuf encoding/decoding
  - [x] Logging interface
  - [x] Add lvgl compatible input driver interface
  - [ ] Add interface for persistency via lvgl littlefs callbacks
    - [ ] Screen calibration data
    - [ ] Device settings (General)
    - [ ] Message storage
    - [ ] Serial connection config
- [ ] Dynamic behavior
  - [x] Startup config
  - [x] Restart behavior
  - [x] Display sleep
  - [ ] Heartbeat timer based on device input actions
- [ ] Localisation support
  - [ ] German translation
  - [ ] Spanish translation
  - [ ] Portuguese translation
  - [ ] French translation
  - [ ] Italian translation
  - [ ] Optional: other languages with latin characters)
- [ ] Support dynamic OLED / Color(TFT) selection
- [x] Add support for UI scaling and try eliminate fixed positioning (lvgl v9)
- [ ] Allow co-existence of generated files/views by different eez-studio projects
- [ ] Fix PSRAM draw buffer issue and do buffer size optimization
- [ ] Test native lvgl driver support
  - [ ] TFT drivers
  - [ ] OLED drivers
- [ ] Check lovyanGFX double-buffering DMA capabilities
- [ ] Check lvgl native driver DMA double-buffering
- [ ] E-Ink support
- [ ] RP2040 support

Meshtastic UI (general)

- [x] Boot Screen
- [x] Home Screen
  - [x] Messages info
  - [x] Nodes info
  - [x] GPS info
  - [ ] WiFi info
  - [ ] Bluetooth info
  - [ ] MQTT info
  - [x] Free memory info
- [ ] Nodes panel
  - [x] Scroll display and sorting
  - [ ] Node details
  - [ ] Telemetry data display
  - [ ] Repeater support (manual insertion)
  - [ ] LastHeard & time source handling improvements
  - [ ] Remote Node configuration
  - [ ] Filter (mqtt, offline, unknown, by name)
- [x] Group channel panel
- [x] Chat panel
  - [x] Scroll container and messages display
  - [x] Virtual keyboard
  - [x] Message acknowledgement
  - [x] Delete chat
- [ ] Map
  - [ ] Tiles dynamic loading
    - [ ] SD card
    - [ ] WLAN
  - [ ] Pan & Zoom
  - [ ] Node locations
- [ ] Settings
  - [ ] Basic Settings
    - [x] User name
    - [x] Region
    - [x] Modem Preset
    - [ ] Channel
    - [x] Device Role
    - [x] Screen Timeout
    - [ ] Screen Calibration
    - [x] Brightness
    - [x] Input Control
    - [ ] Message Alert
    - [ ] Language
    - [ ] Timezone
    - [ ] Maps
    - [ ] Audio
    - [x] NodeDB / Factory Reset
    - [x] Reboot / Shutdown
  - [ ] Advanced Settings
    - [ ] General Settings
    - [ ] Radio Settings
    - [ ] Module Settings
- [x] Status bar with battery symbol
- [x] UI Keyboard navigation & control
- [ ] Latin supplemental fonts

📟 T-Deck (also covered: unPhone)

- [x] Firmware project integration
- [ ] T-Deck UI
  - [x] 320x240 scalable view
  - [x] GPS position
  - [ ] Node location and precision
  - [ ] Radio frequency display
  - [ ] Offline map display
- [x] I2C keyboard input handling
- [ ] Trackball support (e.g. fast scrolling list views)
- [ ] SD card support, mainly for offline maps or import/export (config & chat history)
- [ ] (Optional): allow bluetooth connection (-> PhoneAPI queue re-design)
- [ ] I2S Audio support

⌚ T-Watch

- [ ] T-Watch UI
  - [ ] 240x240 View
  - [ ] Clock screen
- [ ] Firmware project integration
- [ ] Continue work on eez-studio UI screens
- [ ] Refactoring of common code with 320x240 view into base class

OLED

- [ ] Provide demo for OLED 128x64 screen
- [ ] Space and RAM requirements analysis

🐧 Portduino (Raspberry / native linux)

- [x] Project integration into firmware
- [x] Display driver run-time configuration interface
- [x] Add missing settingsMap entries for DisplayDriverConfig
- [x] Integrate lvgl keyboard input driver
- [x] Add support for several SPI devices
- [ ] Add pwm brightness control
- [x] Target environment cleanup

📱 Stand-alone Device

- [x] Dedicated device-ui project
- [x] Sunton/EstarDyn CYD support (320x240)
- [x] LilyGo T-HMI support (320x240)
- [X] WT32-SC01 (Plus) support (480x320)
  - [x] Display driver
  - [X] 480x320 view -> scaled 320x240
- [ ] image size reduction
- [ ] Fix/Workaround serial light sleep UART reading issue (-> firmware)
- [ ] Heartbeat timer
- [x] Serial data send/receive
  - [x] UART connection support
  - [ ] WLAN connection support
  - [ ] Bluetooth connection support
- [ ] Serial Interface configuration UI screen
- [ ] Allow serial connection initialisation at runtime

Architecture Overview device-ui library (Class Diagram)

class diagram

Stats

Alt

Releases

No releases published

Sponsor this project

 

Packages

No packages published