Andy's Workshop Forums

General Category => General discussion => Topic started by: Василий Пупки on February 22, 2015, 02:06:53 pm

Title: Сompile error example project xmemtft
Post by: Василий Пупки on February 22, 2015, 02:06:53 pm
Hi, I'm trying to connect my Nokia 6270 LCD with Arduino Uno.
At first step I had a problem with compile.
I work in Arduino IDE 1.0.5.
I downloaded Library http://andybrown.me.uk/wk/files/xmemtft-3.0.2.zip, then
I choose example Line project, run the compile and get an error:
Line.ino:25:9: error: ‘Nokia6300_Portrait_262K’ does not name a type
Line.ino:27:1: error: ‘TftPanel’ does not name a type
Line.ino: In function ‘void setup()’:
Line.ino:40:3: error: ‘tft’ was not declared in this scope
Line.ino:40:11: error: expected type-specifier before ‘TftPanel’
Line.ino:40:11: error: expected ‘;’ before ‘TftPanel’
Line.ino: In function ‘void loop()’:
Line.ino:56:3: error: ‘TftPanel’ has not been declared
Line.ino:56:21: error: expected ‘;’ before ‘randomColour’
Line.ino:60:19: error: ‘tft’ was not declared in this scope
Line.ino:65:5: error: ‘randomColour’ was not declared in this scope
Line.ino:71:3: error: ‘tft’ was not declared in this scope


How fix it?
Title: Re: Сompile error example project xmemtft
Post by: Andy Brown on February 23, 2015, 01:26:30 pm
You haven't selected one of the "Arduino Mega" boards from the Tools => Board menu. The xmem interface used by this library is unique to the Mega series of boards.
Title: Re: Сompile error example project xmemtft
Post by: Василий Пупки on February 24, 2015, 07:55:32 am
I don't carefully read the manual for Uno http://andybrown.me.uk/wk/2012/07/28/interfacing-the-nokia-6300-qvga-tft-to-the-standard-arduino/
Needed to do:
//typedef Nokia6300_Landscape_262K LcdAccess;
typedef Nokia6300_Landscape_262K_Gpio LcdAccess;


Compiled without errors!