mirror of
https://github.com/YuzuZensai/MCUFRIEND_kbv.git
synced 2026-01-31 14:57:48 +00:00
only declare SmallFont without GFXFont
This commit is contained in:
@@ -22,35 +22,18 @@
|
||||
|
||||
|
||||
#include <Adafruit_GFX.h>
|
||||
//#include <Adafruit_TFTLCD.h> // this header is not needed
|
||||
#include <UTFTGLUE.h> // 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 <UTFT.h>
|
||||
//#include <SD.h>
|
||||
//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
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
// This program requires the UTFT library.
|
||||
//
|
||||
|
||||
#include <Adafruit_GFX.h>
|
||||
//#include <Adafruit_GFX.h>
|
||||
//#include <Adafruit_TFTLCD.h>
|
||||
#include <MCUFRIEND_kbv.h>
|
||||
#include <UTFTGLUE.h>
|
||||
@@ -22,18 +22,15 @@ 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(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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user