mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-24 20:55:21 +00:00
Using find_package to locate Zephyr. Old behavior was to use $ENV{ZEPHYR_BASE} for inclusion of boiler plate code. Whenever an automatic run of CMake happend by the build system / IDE then it was required that ZEPHYR_BASE was defined. Using ZEPHYR_BASE only to locate the Zephyr package allows CMake to cache the base variable and thus allowing subsequent invocation even if ZEPHYR_BASE is not set in the environment. It also removes the risk of strange build results if a user switchs between different Zephyr based project folders and forgetting to reset ZEPHYR_BASE before running ninja / make. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no> |
||
---|---|---|
.. | ||
boards | ||
fonts | ||
src | ||
CMakeLists.txt | ||
prj.conf | ||
README.rst | ||
sample.yaml |
.. _cfb_custom_fonts: Custom Fonts ############ Overview ******** A simple example showing how to generate Character Framebuffer (CFB) font headers automatically at build time. This example generates a font with font elements for 6 sided dice from a PNG image, and then uses the generated header (``cfb_font_dice.h``) to show the font elements on the display of a supported board. The source code for this sample application can be found at: :zephyr_file:`samples/display/cfb_custom_font`. Building and Running ******************** There are different configuration files in the cfb_custom_font directory: - :file:`prj.conf` Generic config file, normally you should use this. - :file:`boards/reel_board.conf` This overlay config enables support for SSD16XX display controller on the reel_board. Example building for the reel_board with SSD16XX display support: .. zephyr-app-commands:: :zephyr-app: samples/display/cfb_custom_font :host-os: unix :board: reel_board :goals: flash :compact: