ST7735
ST7735 copied to clipboard
C library for ST7735 LCD driver
C Library for ST7735 1.8 TFT LCD display
ST7735 Description
Detailed information are described in Datasheet ST7735. New version 2.0 allow to connect more than 1 display.
Library
C library is aimed for driving ST7735 1.8 TFT LCD display 162x132 through SPI's Atmega328P / Atmega8 / Atmega16A.
Hardware connection ATMEGA328P -> LCD1
PORT LCD | PORT ATMEGA328P | Description |
---|---|---|
RST | PORTD 7 | Chip Reset Signal |
CS | PORTB 2 | SPI Chip Select |
D/C | PORTB 0 | SPI data / command; 1=Data, 0=Command |
DIN | PORTB 3 | SPI Serial data in / MOSI |
CLK | PORTB 5 | SPI Serial clock signal |
UCC | +5V | Supply Voltage +5V |
BL | PORTB 1 | Backlight control (with resistor 40-150 Ohm) |
GND | GND | Ground |
Hardware connection ATMEGA328P -> LCD2
PORT LCD | PORT ATMEGA328P | Description |
---|---|---|
RST | PORTD 3 | Chip Reset Signal |
CS | PORTD 0 | SPI Chip Select |
D/C | PORTB 0 | SPI data / command; 1=Data, 0=Command |
DIN | PORTB 3 | SPI Serial data in / MOSI |
CLK | PORTB 5 | SPI Serial clock signal |
UCC | +5V | Supply Voltage +5V |
BL | PORTD 1 | Backlight control (with resistor 40-150 Ohm) |
GND | GND | Ground |
Usage
Prior defined for MCU Atmega16 / Atmega8 / Atmega328P. Need to be carefull with SPI ports definition.
PORT | Atmega16 | Atmega8 / Atmega328 |
---|---|---|
SS | PB4 | PB2 |
MOSI | PB5 | PB3 |
MISO | PB6 | PB4 |
SCK | PB7 | PB5 |
Tested
Library was tested and proved on a ST7735 1.8″ TFT Display with Atmega328P.
Demonstration
