I bought a few ST7735 displays off eBay and am having some trouble getting it to display anything except some glitchy lines.
Here is how I wired everything up:
Imgur: The magic of the Internet (The red line near the top is from the sticker on the display)And this is what I get:
Imgur: The magic of the Internet#include <Adafruit_GFX.h>
#include <Adafruit_ST7735.h>
#include <SPI.h>
Adafruit_ST7735 LCD[] = {
Adafruit_ST7735(22, 24, 20, 21, -1),
Adafruit_ST7735(23, 25, 20, 21, -1)
};
void setup() {
for (int i = 0; i < 2; i++) {
LCD[i].initR(INITR_144GREENTAB);
LCD[i].fillScreen(ST7735_RED);
}
}
void loop() {
for (int i = 0; i < 2; i++) {
LCD[i].fillScreen(ST7735_GREEN);
}
}