Arduino 1.77" display: Difference between revisions
From wikiluntti
(→Theory) |
|||
Line 74: | Line 74: | ||
* https://adafru.it/cBB | * https://adafru.it/cBB | ||
== Theory == | == Theory: SPI protocol == | ||
Serial Peripheral Interface | |||
The SPI enabled device typically has the following pins: | |||
* SS: A line indicating slave device selection | |||
* MISO and MOSI (Master In Slave Out): A line for sending serial data to the Master device | |||
* SCK/SCLK (Serial Clock): A clock signal generated by the Master device to synchronize data transmission, so the slave device knows when to read the input. | |||
* RESET: A line for restarting the transmission process. | |||
== References == | == References == | ||
https://www.arthurwiz.com/software-development/177-inch-tft-lcd-display-with-st7735s-on-arduino-mega-2560 | https://www.arthurwiz.com/software-development/177-inch-tft-lcd-display-with-st7735s-on-arduino-mega-2560 |
Revision as of 17:19, 3 December 2024
Introduction
Connections and Libraries
Arduino | Display | Name | Purpose | No needed? | Constructor 2! |
---|---|---|---|---|---|
3.3V | 8 LEDA | Lite | Backlight control | ||
10 | 7 CS | Chip Select / DC (Data/Command) | SS PIN / SPI data or command selector [SS = Slave Select] | Yes | Yes |
9 | 6 RS | Register Selection | MISO - Sending to Master | Yes | Yes |
8 | 5 RES | Reset / RST | Reset the TFT | Yes | Yes |
11 | 4 SDA | Serial Data | MOSI - Sending to Slave | Yes | |
13 | 3 SCK | SCLK - Clock Line | SPI Clock Input | Yes | |
5V | 2 VCC | Voltage Common Collector | |||
GND | 1 GND | Ground | Ground |
Download library:
Theory: SPI protocol
Serial Peripheral Interface
The SPI enabled device typically has the following pins:
- SS: A line indicating slave device selection
- MISO and MOSI (Master In Slave Out): A line for sending serial data to the Master device
- SCK/SCLK (Serial Clock): A clock signal generated by the Master device to synchronize data transmission, so the slave device knows when to read the input.
- RESET: A line for restarting the transmission process.