]> sigrok.org Git - sigrok-dumps.git/blame - display/st7735/README
st7735: Add dump with unknown command
[sigrok-dumps.git] / display / st7735 / README
CommitLineData
1ea7b9af
AA
1-------------------------------------------------------------------------------
2ST7735 TFT display controller, 4-wire SPI
3-------------------------------------------------------------------------------
4
5This capture contains ST7735 TFT display controller communication which is
6popular for small (1.44", 1.8") 16-bit color display modules. The protocol
7of these modules is based on SPI, but unlike typical SPI has no MISO and uses
8two additional pins called RES (reset) and DC (data / command).
9
10Details:
11https://cdn-shop.adafruit.com/datasheets/ST7735.pdf
12https://github.com/adafruit/Adafruit-ST7735-Library
13
14
15Logic analyzer setup
16--------------------
17
18The 1.44" 128x128 px module was driven by Arduino Uno and Adafruit ST7735
19library. The capture was taken with 8 channel noname Saleae logic analyzer
20clone, sampling 5 logic channels at a rate of 24MHz:
21
22 Probe ST7735
23 ------------------
24 0 CS (chip select)
25 1 RES (reset)
26 2 DC (data / command)
27 3 MOSI (master out, slave in)
28 4 SCLK (clock)
29
30
31Data
32----
33
34This is a minimal capture despite the fact that it might look otherwise. It
35contains an initialization of a display and filling it with one complete frame.
36Long pauses are caused be sleeps for a few hundreds of milliseconds, which are
37required by the spec. Other oddities like frequent changes of CS are caused by
38specific library implementation.
39
26897a96 40
41Dump with unknown command
42-------------------------
43
44Taken with the same setup as above on a 128x160 display with Arduino TFT library
45and the following code:
46
47 #include <TFT.h>
48 #include <SPI.h>
49
50 #define cs 10
51 #define dc 9 // A0
52 #define rst 8
53
54 TFT TFTscreen = TFT(cs, dc, rst);
55
56 void setup()
57 {
58 TFTscreen.begin();
59 TFTscreen.background(0, 255, 0);
60 }
61
62 void loop()
63 {
64 }