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

Zephyr 3.7.0 · Samples · Drivers · Display

Display Sample

Red·green·blue·grey 배치로 display wiring과 pixel ordering을 점검합니다.

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

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

Part 1

요약·해설

실제 TFT shield와 hardware 없는 native_sim build를 모두 제공합니다.

Pattern

4 rectangles

Checks

Orientation · RGB · Endian

Simulation

native_sim

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 E7127313EC3D607C736EC5B4838088EDDAAB6A0C4F7D28FC472098ABC9871D5A
.. zephyr:code-sample:: display
   :name: Display
   :relevant-api: display_interface

   Draw basic rectangles on a display device.

Overview
********

This sample will draw some basic rectangles onto the display.
The rectangle colors and positions are chosen so that you can check the
orientation of the LCD and correct RGB bit order. The rectangles are drawn
in clockwise order, from top left corner: red, green, blue, grey. The shade of
grey changes from black through to white. If the grey looks too green or red
at any point or the order of the corners is not as described above then the LCD
may be endian swapped.

Building and Running
********************

As this is a generic sample it should work with any display supported by Zephyr.

Below is an example on how to build for a :ref:`nrf52840dk_nrf52840` board with a
:ref:`adafruit_2_8_tft_touch_v2`.

.. zephyr-app-commands::
   :zephyr-app: samples/drivers/display
   :board: nrf52840dk/nrf52840
   :goals: build
   :shield: adafruit_2_8_tft_touch_v2
   :compact:

For testing purpose without the need of any hardware, the :ref:`native_sim <native_sim>`
board is also supported and can be built as follows;

.. zephyr-app-commands::
   :zephyr-app: samples/drivers/display
   :board: native_sim
   :goals: build
   :compact:

List of Arduino-based display shields
*************************************

- :ref:`adafruit_2_8_tft_touch_v2`
- :ref:`ssd1306_128_shield`
- :ref:`st7789v_generic`
- :ref:`waveshare_epaper`

Part 3

한국어 전문 번역

개요

이 sample은 display에 몇 개의 기본 rectangle을 그립니다. Rectangle의 색과 위치는 LCD 방향과 RGB bit 순서가 올바른지 확인할 수 있도록 선택했습니다. 왼쪽 위 corner부터 시계 방향으로 red, green, blue, grey rectangle을 그립니다. Grey shade는 black에서 white까지 변합니다. 어느 지점에서 grey가 지나치게 green이나 red로 보이거나 corner 순서가 앞의 설명과 다르면 LCD의 endian이 서로 바뀌었을 수 있습니다.

Build와 실행

Generic sample이므로 Zephyr가 지원하는 모든 display에서 동작해야 합니다.

다음은 nrf52840dk/nrf52840 board와 adafruit_2_8_tft_touch_v2 shield를 대상으로 build하는 예입니다.

west build -b nrf52840dk/nrf52840 --shield adafruit_2_8_tft_touch_v2 samples/drivers/display

Hardware 없이 시험할 때는 native_sim board도 지원하며 다음과 같이 build할 수 있습니다.

west build -b native_sim samples/drivers/display

Arduino 기반 display shield 목록

  • adafruit_2_8_tft_touch_v2
  • ssd1306_128_shield
  • st7789v_generic
  • waveshare_epaper

Source

출처

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