• Welcome to Andy's Workshop Forums. Please login or sign up.
June 10, 2023, 02:45:08 pm


SMF - Just Installed!

Сompile error example project xmemtft

Started by Василий Пупки, February 22, 2015, 02:06:53 pm

Previous topic - Next topic

Василий Пупки

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?

Andy Brown

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.
It's worse than that, it's physics Jim!

Василий Пупки

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!