Arduino 1.77" display: Difference between revisions
From wikiluntti
Line 84: | Line 84: | ||
* 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. | * 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. | * RESET: A line for restarting the transmission process. | ||
== Code 1 == | |||
== Code 2 == | |||
== Code 3 == | |||
== 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:33, 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 |
Install and Download library:
Sketch -> Include Library -> Add .ZIP 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.