1.. _display-sample:
2
3Display Sample
4##############
5
6Overview
7********
8
9This sample will draw some basic rectangles onto the display.
10The rectangle colors and positions are chosen so that you can check the
11orientation of the LCD and correct RGB bit order. The rectangles are drawn
12in clockwise order, from top left corner: red, green, blue, grey. The shade of
13grey changes from black through to white. If the grey looks too green or red
14at any point or the order of the corners is not as described above then the LCD
15may be endian swapped.
16
17Building and Running
18********************
19
20As this is a generic sample it should work with any display supported by Zephyr.
21
22Below is an example on how to build for a :ref:`nrf52840dk_nrf52840` board with a
23:ref:`adafruit_2_8_tft_touch_v2`.
24
25.. zephyr-app-commands::
26   :zephyr-app: samples/drivers/display
27   :board: nrf52840dk_nrf52840
28   :goals: build
29   :shield: adafruit_2_8_tft_touch_v2
30   :compact:
31
32For testing purpose without the need of any hardware, the :ref:`native_posix`
33board is also supported and can be built as follows;
34
35.. zephyr-app-commands::
36   :zephyr-app: samples/drivers/display
37   :board: native_posix
38   :goals: build
39   :compact:
40
41List of Arduino-based display shields
42*************************************
43
44- :ref:`adafruit_2_8_tft_touch_v2`
45- :ref:`ssd1306_128_shield`
46- :ref:`st7789v_generic`
47- :ref:`waveshare_e_paper_raw_panel_shield`
48