Hello to all.
I just recently purchased an Arduino micro-and I connected it to a TFT LCD Module.
The links are accurate.
the problem is that I print horizontal stripes and nothing else.
this is the simple code:
#include <TFT.h> // Arduino LCD library
#include <SPI.h>
// pin definition for the MICRO
#define cs 7
#define dc 0
#define rst 1
TFT screen = TFT(cs, dc, rst);
void setup() {
// initialize the screen
screen.begin();
// make the background black
screen.background(0,0,0);
// set the stroke color to white
screen.stroke(255,255,255);
// turn off fill coloring
screen.noFill();
// draw a rectangle in the center of screen
screen.line(screen.width()/2-5, screen.height()/2-5, 10, 10);
pinMode(4, OUTPUT);
}
void loop() {
digitalWrite(4, HIGH);
delay(1250);
digitalWrite(4, LOW);
delay(1250);
}
to pin D4 I put an LED that is working well.
other connections are:
TFT MICRO
+5 29(+5)
MISO 33(MISO)
SCK 34(SCK)
MOSI 1 (MOSI)
LCDCS 12(PE6)
DC 4(RX)
RST 3(TX)
BL 29(+5)
GND 6(GND)
the problem is that TFT displays only horizontal bars.
help me please!
is it broken? ![]()