50c0a14a93
- Added kernel base drivers for: display, pointer (touch, mouse, etc.), keyboard, adc, power supply and backlight - Implement new kernel driver modules: `st7789-module` and `gt911-module` - Implement ESP32 ADC "oneshot" kernel driver - Implement ESP32 backlight kernel driver with ledc API - Implemented `battery-sense` driver that allows for voltage measurement and creates a power supply child device - Updated github actions - Updated flash scripts - Fix for esp32 legacy driver conflict with ADC - Created separate `lilygo-tdeck` and `lilygo-tdeck-plus` devices - Created `lilygo-module` with LilyGO kernel drivers - Fix for intermittent errors in build related to code generation of `devicetree.c` - `lvgl-module` can now map kernel drivers onto LVGL devices - Created `KernelDisplayApp` as a mirror of `HalDisplayApp` (formerly `DisplayApp`) - Removed `struct` and `enum` prefix in a lot of kernel driver cpp source files - `lilygo-tdeck` and `lilygo-tdeck-plus` are now fully relying on kernel drivers and don't use any of the old HAL
lvgl-module
This module manages the lifecycle of the LVGL library within the Tactility ecosystem.
What the library does
The lvgl-module provides:
- Lifecycle Management: Handles initialization and termination of the LVGL library.
- Task Management: Manages the LVGL main loop task.
- Thread-Safety: Provides mutex-based locking mechanisms (
lvgl_lock,lvgl_unlock) to ensure safe access to LVGL APIs from multiple tasks. - Font Access: Provides a unified interface to access pre-configured text and icon fonts.
Different types of fonts
The module supports two main categories of fonts:
Text Fonts
Standard text rendering uses the Montserrat font. Three sizes are pre-configured:
FONT_SIZE_SMALLFONT_SIZE_DEFAULTFONT_SIZE_LARGE
Icon Fonts
Icons are provided by the Material Symbols font, divided into three usage-specific sets:
- Statusbar Icons: Optimized for the system status bar.
- Launcher Icons: Sized for application launchers.
- Shared Icons: General purpose icons used across the system.
How to update the fonts
Font sizes and symbols are configurable:
- On ESP32 (IDF): Sizes can be updated via
menuconfigor by editingsdkconfig. Look forCONFIG_TT_LVGL_FONT_SIZE_*andCONFIG_TT_LVGL_*_ICON_SIZEparameters. - On Simulator/POSIX: Default sizes are defined in
Modules/lvgl-module/CMakeLists.txt.
If you change an icon font size, ensure that a corresponding C file exists in source-fonts/ (e.g., material_symbols_shared_24.c). These files are generated from TTF/OTF fonts using the LVGL font converter.
License
This module is licensed under the Apache v2.0 license.