Skip to content

Conversation

78
Copy link
Owner

@78 78 commented Sep 8, 2025

This pull request refactors board initialization code across multiple files to simplify asset and font management. The key changes remove board-specific font declarations and dynamic asset loading from board classes, centralizing asset handling and reducing redundancy. Additionally, a new configuration option is introduced to control flashing default assets during the build process.

Configuration changes:

  • Added a new FLASH_DEFAULT_ASSETS config option in main/Kconfig.projbuild to enable or disable automatic downloading and flashing of default assets to the assets partition during build.

Board code simplification:

  • Removed board-specific font declarations (LV_FONT_DECLARE) from all board source files, reducing duplication and making font management more centralized. [1] [2] [3] [4] [5] [6] [7] [8] [9]
  • Updated SpiLcdDisplay initialization in all boards to remove explicit font lists from constructor arguments, further decoupling font loading from board definitions. [1] [2] [3] [4] [5] [6] [7] [8] [9]

Asset management changes:

  • Removed the GetAssets() override and dynamic asset loading from all board classes, centralizing asset management and simplifying board logic. [1] [2] [3] [4] [5] [6] [7] [8] [9]

General code cleanup:

  • Removed unused blank lines and improved code formatting in several board files for better readability. [1] [2] [3] [4] [5] [6]

These changes make asset and font handling more maintainable and reduce the complexity of individual board implementations.

@78 78 merged commit d04b081 into main Sep 8, 2025
80 of 93 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant