diff --git a/examples/GLUE_Demo_320x240/GLUE_Demo_320x240.ino b/examples/GLUE_Demo_320x240/GLUE_Demo_320x240.ino index e68ca76..caf04bb 100644 --- a/examples/GLUE_Demo_320x240/GLUE_Demo_320x240.ino +++ b/examples/GLUE_Demo_320x240/GLUE_Demo_320x240.ino @@ -22,35 +22,18 @@ #include -//#include // this header is not needed #include // class methods are in here -//UTFTGLUE myGLCD; // use for default shield -//UTFTGLUE myGLCD(0x9320,A2,A1,A3,A4,A0); -//UTFTGLUE myGLCD(0x9325,A2,A1,A3,A4,A0); -//UTFTGLUE myGLCD(0x7783,A2,A1,A3,A4,A0); -//UTFTGLUE myGLCD(0x1289,A1,A2,A0,0,A3); // this might choose the pins UTFTGLUE myGLCD(0x0154,A2,A1,A3,A4,A0); -/* -#include -//#include -//UTFT myGLCD(ILI9325C,A2,A1,A3,A4); // Remember to change the model parameter to suit your display module! -//UTFT myGLCD(ILI9325D_8,A2,A1,A3,A4); // Remember to change the model parameter to suit your display module! -UTFT myGLCD(SSD1289_8,A1,A2,A0,A3); // Remember to change the model parameter to suit your display module! -*/ - -// Uncomment the next line for Arduino 2009/Uno -// UTFT(byte model, int RS, int WR,int CS,int RD) -//UTFT myGLCD(ILI9325C,A2,A1,A3,A0); // Remember to change the model parameter to suit your display module! -//Adafruit_UTFT myGLCD; - // Declare which fonts we will be using -extern uint8_t SmallFont[]; +#if !defined(SmallFont) +extern uint8_t SmallFont[]; //.kbv GLUE defines as GFXFont ref +#endif void setup() { - randomSeed(analogRead(0)); - pinMode(A0, OUTPUT); + randomSeed(analogRead(5)); //.kbv Due does not like A0 + pinMode(A0, OUTPUT); //.kbv mcufriend have RD on A0 digitalWrite(A0, HIGH); // Setup the LCD diff --git a/examples/GLUE_Demo_400x240/GLUE_Demo_400x240.ino b/examples/GLUE_Demo_400x240/GLUE_Demo_400x240.ino index 3507581..3596ec7 100644 --- a/examples/GLUE_Demo_400x240/GLUE_Demo_400x240.ino +++ b/examples/GLUE_Demo_400x240/GLUE_Demo_400x240.ino @@ -10,7 +10,7 @@ // This program requires the UTFT library. // -#include +//#include //#include #include #include @@ -22,18 +22,15 @@ extern uint8_t SmallFont[]; #include // Declare which fonts we will be using -extern uint8_t SmallFont[]; - -// Uncomment the next line for Arduino 2009/Uno -UTFT myGLCD(ITDB32WD,19,18,17,16); // Remember to change the model parameter to suit your display module! - -// Uncomment the next line for Arduino Mega -//UTFT myGLCD(ITDB32WD,38,39,40,41); // Remember to change the model parameter to suit your display module! -*/ +#if !defined(SmallFont) +extern uint8_t SmallFont[]; //.kbv GLUE defines as GFXFont ref +#endif void setup() { - randomSeed(analogRead(0)); + randomSeed(analogRead(5)); //.kbv Due does not like A0 + pinMode(A0, OUTPUT); //.kbv mcufriend have RD on A0 + digitalWrite(A0, HIGH); // Setup the LCD myGLCD.InitLCD(); diff --git a/examples/GLUE_Demo_480x320/GLUE_Demo_480x320.ino b/examples/GLUE_Demo_480x320/GLUE_Demo_480x320.ino index 4aa4b40..5533958 100644 --- a/examples/GLUE_Demo_480x320/GLUE_Demo_480x320.ino +++ b/examples/GLUE_Demo_480x320/GLUE_Demo_480x320.ino @@ -11,27 +11,19 @@ // #include -//#include #include -//UTFTGLUE myGLCD; // use for default shield UTFTGLUE myGLCD(0x9488,A2,A1,A3,A4,A0); -extern uint8_t SmallFont[]; -/* -#include // Declare which fonts we will be using -extern uint8_t SmallFont[]; - -// Uncomment the next line for Arduino 2009/Uno -//UTFT myGLCD(CTE32HR,19,18,17,16); // Remember to change the model parameter to suit your display module! - -// Uncomment the next line for Arduino Mega -UTFT myGLCD(CTE32HR,38,39,40,41); // Remember to change the model parameter to suit your display module! -*/ +#if !defined(SmallFont) +extern uint8_t SmallFont[]; //.kbv GLUE defines as GFXFont ref +#endif void setup() { - randomSeed(analogRead(0)); + randomSeed(analogRead(5)); //.kbv Due does not like A0 + pinMode(A0, OUTPUT); //.kbv mcufriend have RD on A0 + digitalWrite(A0, HIGH); // Setup the LCD myGLCD.InitLCD();