Hello,
I'm starting to learn about Arduino, and I've succesfully developed a project with a UNO and various sensors, clock, caracter display and so on.
Now I'm starting to learn about Graphic LCD. I've bought a 320x240 TFT SSD1289 with touch, an SD card and a shield for it.
I loaded the demo project and it work fine. So the hardware is fine, and libraries loaded well (on a Mega2560)
Then I loaded the demo for display a bitmat on the lcd, but the problems start.. :~
I use the UTFT library from http://henningkarlsen.com
The manual is very poor of information, and looking in the web, i found minor info.
The command for sending a bmp on the lcd is:
MyGLCD.DrawBitmap(0, 0, 32, 32, bitmap)
where 0, 0 are the starting coordinates, 32, 32, are the ending coordinates, and "bitmap" is the image file, converted with the included tool (i use the converted images in the examples in the library)
When i try to compile the sketch in the example dir "UTFT_Bitmap_128x128" i obtain this error:
UTFT_Bitmap_128x128.ino: In function 'void loop()':
UTFT_Bitmap_128x128:31: error: invalid conversion from 'short unsigned int*' to 'unsigned int*'
UTFT_Bitmap_128x128:31: error: initializing argument 5 of 'void UTFT::drawBitmap(int, int, int, int, unsigned int*, int)'
UTFT_Bitmap_128x128:37: error: invalid conversion from 'short unsigned int*' to 'unsigned int*'
UTFT_Bitmap_128x128:37: error: initializing argument 5 of 'void UTFT::drawBitmap(int, int, int, int, unsigned int*, int)'
UTFT_Bitmap_128x128:45: error: invalid conversion from 'short unsigned int*' to 'unsigned int*'
UTFT_Bitmap_128x128:45: error: initializing argument 5 of 'void UTFT::drawBitmap(int, int, int, int, unsigned int*, int)'
The library is loaded in arduino ide, and the images are just compiled.
i think the error is in the statement and the "icon1" parameter, referred to icon1.c compiled image (that is in the same directory of the project file):
myGLCD.drawBitmap (x32, y32, 32, 32, icon1);
but I don't know how to solve. If someone help me to solve this problem, once I've and example sketch working, then I'll be able to advance in my project......
I hope I explain well my issue, and someone help this poor noob!
Thanks
Rael