#include <SPI.h>
#include "LCD_Driver.h"
////////////////////////////
#define IMAGE_BACKGROUND WHITE
#define FONT_FOREGROUND BLACK
#define FONT_BACKGROUND WHITE
////////////////////////////
// Set these to your desired credentials.
int LCD;
int ledblink = 2;
void setup()
{
pinMode(ledblink, OUTPUT);
Config_Init();
LCD_Init();
Serial.begin(115200);
// WiFi.begin(ssid,password);
LCD_SetBacklight(180);
// Paint_NewImage(LCD_WIDTH, LCD_HEIGHT, 90, WHITE);
// Paint_SetRotate(90);
//////////////////////////////////////////////////
// LCD_Clear(0xffff); //white
// LCD_Clear(0xF800); // red
LCD_Clear(MAGENTA); //
// LCD_Clear(0x07E0); // green
// LCD_Clear(0x001F ); //blue
//////////////////////////////////////////////////////////
}
void loop() {
// LCD_Write("Hello World!");
//LCD.print("hello, world!");
digitalWrite(ledblink, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(ledblink, LOW); // turn the LED off by making the voltage LOW
delay(100);
}
Aha, so the only difference from the code posted in the following thread:
is just the LCD backlight setting?
pinMode(32, OUTPUT);
digitalWrite(32, HIGH);
For the benefit of anyone experiencing similar issue, I recommend you clarifying the cause in the previous thread and this thread, and marking them as resolved.