Hi Guys, I am new to Arduino, I am trying to make a GPS speedometer using a Arduino Micro.
I finally got the GPS to work, now I am trying to get the display to show something other then a white screen.
I purchased my screen from China
I also am using a level shifter 74LVC245A for the display.
this is the code I am working with to test the display.
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
// For the Adafruit shield, these are the default.
#define TFT_DC 9
#define TFT_RST 6
#define TFT_CS 10
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);
void setup() {
tft.begin();
}
void loop(void) {
Serial.begin(9600);
Serial.println("COLOR TEST");
testFillScreen();
delay(1000);
}
unsigned long testFillScreen() {
unsigned long start = micros();
tft.fillScreen(ILI9341_BLACK);
tft.fillScreen(ILI9341_RED);
tft.fillScreen(ILI9341_GREEN);
tft.fillScreen(ILI9341_BLUE);
tft.fillScreen(ILI9341_YELLOW);
return micros() - start;
}
any help will be appreciated
Rick