samples/subsys/display/cfb_custom_font/README.html · samples/subsys/display/cfb_custom_font/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · Display · Font Generation

CFB custom fonts

Build time에 PNG를 CFB font header로 바꾸고 여섯 dice glyph를 display합니다.

Official pathsamples/subsys/display/cfb_custom_font/README.html
Source filesamples/subsys/display/cfb_custom_font/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

Generic·reel board configuration과 SSD16XX build·flash path를 설명합니다.

Input

PNG dice image

Generated

cfb_font_dice.h

Display

SSD16XX

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 DBE2A3FEEAB83D1F7A9DDF03FAC24CAA9996191BC430FB4A7DB72D15CDBC82DC
.. zephyr:code-sample:: cfb-custom-fonts
   :name: Custom fonts
   :relevant-api: monochrome_character_framebuffer

   Generate and use a custom font.

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/subsys/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/subsys/display/cfb_custom_font
   :host-os: unix
   :board: reel_board
   :goals: flash
   :compact:

Part 3

한국어 전문 번역

개요

Build time에 Character Framebuffer(CFB) font header를 자동 생성하는 simple example입니다. 관련 API는 monochrome_character_framebuffer입니다.

PNG image에서 6-sided dice의 각 면을 나타내는 font element를 생성하고, 생성된 header cfb_font_dice.h를 application에 포함해 지원 board display에 dice glyph를 표시합니다.

Sample source는 samples/subsys/display/cfb_custom_font에 있습니다.

빌드 및 실행

cfb_custom_font directory에는 두 configuration file이 있습니다.

  • prj.conf: 보통 사용하는 generic configuration.
  • boards/reel_board.conf: reel board의 SSD16XX display controller 지원을 enable하는 board overlay configuration.

다음은 Unix host에서 SSD16XX display support가 적용된 reel_board용으로 build하고 flash하는 example입니다.

west build -b reel_board samples/subsys/display/cfb_custom_font
west flash

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.