1.. _st7735r_generic:
2
3Generic ST7735R Display Shield
4##############################
5
6Overview
7********
8
9This is a generic shield for display shields based on ST7735R display
10controller. More information about the controller can be found in
11`ST7735R Datasheet`_.
12
13Pins Assignment of the Generic ST7735R Display Shield
14=====================================================
15
16+-----------------------+--------------------------------------------+
17| Arduino Connector Pin | Function                                   |
18+=======================+===============+============================+
19| D8                    | ST7735R Reset |                            |
20+-----------------------+---------------+----------------------------+
21| D9                    | ST7735R DC    | (Data/Command)             |
22+-----------------------+---------------+----------------------------+
23| D10                   | SPI SS        | (Serial Slave Select)      |
24+-----------------------+---------------+----------------------------+
25| D11                   | SPI MOSI      | (Serial Data Input)        |
26+-----------------------+---------------+----------------------------+
27| D12                   | SPI MISO      | (Serial Data Out)          |
28+-----------------------+---------------+----------------------------+
29| D13                   | SPI SCK       | (Serial Clock Input)       |
30+-----------------------+---------------+----------------------------+
31
32Current supported displays
33==========================
34
35+----------------------+------------------------------+
36| Display              | Shield Designation           |
37|                      |                              |
38+======================+==============================+
39| adafruit             | st7735r_ada_160x128          |
40| 160x128 18bit TFT    |                              |
41+----------------------+------------------------------+
42
43Requirements
44************
45
46This shield can only be used with a board that provides a configuration
47for Arduino connectors and defines node aliases for SPI and GPIO interfaces
48(see :ref:`shields` for more details).
49
50Programming
51***********
52
53Set ``--shield st7735r_ada_160x128`` when you invoke ``west build``. For example:
54
55.. zephyr-app-commands::
56   :zephyr-app: samples/subsys/display/lvgl
57   :board: nrf52840dk/nrf52840
58   :shield: st7735r_ada_160x128
59   :goals: build
60
61References
62**********
63
64.. target-notes::
65
66.. _ST7735R Datasheet:
67   https://www.crystalfontz.com/controllers/Sitronix/ST7735R/319/
68