MCUdude / MegaCore

Arduino hardware package for ATmega64, ATmega128, ATmega165, ATmega169, ATmega325, ATmega329, ATmega640, ATmega645, ATmega649, ATmega1280, ATmega1281, ATmega2560, ATmega2561, ATmega3250, ATmega3290, ATmega6450, ATmega6490, AT90CAN32, AT90CAN64 and AT90CAN128
Other
384 stars 118 forks source link

Interfacing ST7735 display with Atmega128 #178

Closed muhit313 closed 2 years ago

muhit313 commented 2 years ago

Connection with st7735 display with Arduino Uno is:

ST7735---------Arduino UNO VCC------->>---5v GND------>>---GND GND------>>---GND SCK/CLK-->>---PIN 13 SDA/MOSI>>---PIN 11 RS/DC----->>--PIN 8 RST------->>---PIN 9 CS-------->>---PIN 10

Update: This means the library uses SPI interface. But The SPI interface of Atmega128 is not working with ST7735 display. Now, What will be the SPI connection between ST7735 and Atmega128?

When I solved it without using SPI it's working slowly. So I need SPI connection.

MCUdude commented 2 years ago

This is something you'll have to ask on the Arduino forum. It depends on the library/code you're using to drive the LCD.

muhit313 commented 2 years ago

Yes, You are right. But the Atmega128 ISP interfacing is not working with ST7735 display.

muhit313 commented 2 years ago

I tried the SPI connection like:

TFT_MOSI----Atmega128 pin 10 TFT_SCLK-----Atmega128 pin 9 TFT_CS--------Atmega128 pin 8 TFT_RST-------Atmega128 pin 6 TFT_DC--------Atmega128 pin 7

Is this SPI connection is wrong?

Currently it is not working.

muhit313 commented 2 years ago

Sorry for my mistake. I have a mismatch of connection. After some tries it is working again with SPI also.