Arduino Forum

Using Arduino => Programming Questions => Topic started by: malandro on Jul 06, 2014, 07:28 pm

Title: UTouch QuickPaint error
Post by: malandro on Jul 06, 2014, 07:28 pm
Hi,
i have connected an arduino uno with a 2.8ITDB02 Shield an want to load  the "UTouch_QuickPaint" of Henning Karlsen. But when i am compiling i have got an error:

Can any body help me?
UTouch_QuickPaint:46: error: 'VGA_WHITE' was not declared in this scope
UTouch_QuickPaint:46: error: 'VGA_BLACK' was not declared in this scope
UTouch_QuickPaint:46: error: 'VGA_RED' was not declared in this scope
UTouch_QuickPaint:46: error: 'VGA_BLUE' was not declared in this scope
UTouch_QuickPaint:46: error: 'VGA_GREEN' was not declared in this scope
UTouch_QuickPaint:46: error: 'VGA_FUCHSIA' was not declared in this scope
UTouch_QuickPaint:46: error: 'VGA_YELLOW' was not declared in this scope
UTouch_QuickPaint:46: error: 'VGA_AQUA' was not declared in this scope
UTouch_QuickPaint.ino: In function 'void drawColorMarkerAndBrushSize(int)':
UTouch_QuickPaint:51: error: 'VGA_BLACK' was not declared in this scope
UTouch_QuickPaint:54: error: 'VGA_WHITE' was not declared in this scope
UTouch_QuickPaint:62: error: no matching function for call to 'UTFT::setColor(word&)'
C:\Program Files (x86)\Arduino\libraries\UTouch/UTFT.h:138: note: candidates are: void UTFT::setColor(byte, byte, byte)
UTouch_QuickPaint:68: error: no matching function for call to 'UTFT::setColor(word&)'
C:\Program Files (x86)\Arduino\libraries\UTouch/UTFT.h:138: note: candidates are: void UTFT::setColor(byte, byte, byte)
UTouch_QuickPaint.ino: In function 'void setup()':
UTouch_QuickPaint:80: error: 'VGA_WHITE' was not declared in this scope
UTouch_QuickPaint:96: error: no matching function for call to 'UTFT::setColor(word&)'
C:\Program Files (x86)\Arduino\libraries\UTouch/UTFT.h:138: note: candidates are: void UTFT::setColor(byte, byte, byte)
UTouch_QuickPaint.ino: In function 'void loop()':
UTouch_QuickPaint:136: error: 'VGA_BLACK' was not declared in this scope
UTouch_QuickPaint:138: error: no matching function for call to 'UTFT::setColor(word&)'


thanks a lot


Title: Re: UTouch QuickPaint error
Post by: johnwasser on Jul 06, 2014, 07:46 pm
http://www.henningkarlsen.com/electronics/library.php?id=56

"This library is primarily an add-on to my UTFT library for TFT display modules.

"As stated earlier, this library is primarily an add-on to UTFT, but the library in it self does not require UTFT. The supplied examples DO however require the UTFT library.

Are you trying to run one of the supplied examples?  Do you have his other library installed?
Title: Re: UTouch QuickPaint error
Post by: malandro on Jul 18, 2014, 06:16 pm
Dear John,

I am terrible sorry for my late answer. I was on  hollidays ;-)
Thanks a lot for your answer. No i didnt installed the another library but  I will do it now. Yes I am trying to start one of the examples to control the ITDB02 shield touschscreen display. After that i want a read data from a sirf iii GPS sensor.
As I understand you,  I have to install the another library to right?

reggards