I have been playing with programming on the Arduino for a little less than a year, on and off. Now I'm trying to learn how to write my own code for an Arduino 2.2' TFT display MAR2201. I'm going off a project in the Arduino LCD projects by Robert J Davis II. In there he is using an HY-TFT240_262K display, but since that one uses the ILI9325C drivers and mine uses the ILI9225 drivers, I've only made a couple of changes to the code so far. Here is the code (I hope I put it in there correctly)
<//#include <memorysaver.h>
#include <UTFT.h>
#include <TFT_22_ILI9225.h>
// Declare which fonts we will be using
extern uint8_t SmallFont[];
extern uint8_t BigFont[];
extern uint8_t SevenSegNumFont[];
UTFT myGLCD(ILI9225,19,18,17,16);
int Mv;
int OldMv;
void setup() {
// put your setup code here, to run once:
myGLCD.InitLCD();
myGLCD.clrScr();
}
void loop() {
// put your main code here, to run repeatedly:
// set color(Red, Green, Blue) range 0 to 255
myGLCD.setBackColor(0, 0, 0);
myGLCD.setFont(BigFont);
char buf[12];
while(I) {
// dislay millivolts in green text
Mv=analogRead(A0)/2.05;
myGLCD.setColor(0, 255, 0);
myGLCD.print(itoa(Mv, buf, 10), 16, 200);
// Turn old line red
if (OLDMv != Mv) {
myGLCD.setColor)255, 0, 0);
myGLCD.drawLine( 160, 240, OldMv, 0);
|
// Draw new white line
myGLCD.setColo(255, 255, 255);
myGLCD.drawLine( 160, 240, Mv, 0);
OldMv=Mv;
}; ..do nothing
}
}
}
}>
I got an error message that the 'ILI9225" was not declared in this scope. I'm not certain what they are calling for here. I've tried finding guidance online but so far have hit a blank wall. Any suggestions?