Arduino 1.77" display: Difference between revisions

From wikiluntti
Line 70: Line 70:




Download library:
Install and Download library:  
* https://adafru.it/dXk
* https://adafru.it/dXk
* https://adafru.it/cBB
* https://adafru.it/cBB
Sketch -> Include Library -> Add .ZIP Library


== Theory: SPI protocol ==
== Theory: SPI protocol ==

Revision as of 17:27, 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.

References

https://www.arthurwiz.com/software-development/177-inch-tft-lcd-display-with-st7735s-on-arduino-mega-2560