only declare SmallFont without GFXFont

This commit is contained in:
prenticedavid
2016-07-06 19:54:11 +01:00
parent 965ffba9e4
commit c12b391d71
3 changed files with 18 additions and 46 deletions

View File

@@ -11,27 +11,19 @@
//
#include <Adafruit_GFX.h>
//#include <Adafruit_TFTLCD.h>
#include <UTFTGLUE.h>
//UTFTGLUE myGLCD; // use for default shield
UTFTGLUE myGLCD(0x9488,A2,A1,A3,A4,A0);
extern uint8_t SmallFont[];
/*
#include <UTFT.h>
// 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();