Salve a tutti.
Ho da poco acquistato un arduino micro e l'ho collegato ad un TFT LCD Module.
I collegamenti credo siano esatti.
il punto è che mi stampa delle strisce orizzontali e basta.
questo è il semplicissimo codice:
#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);
}
al piedino D4 ho messo un led che funziona normalmente.
gli altri collegamenti sono:
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)