Monday, August 15, 2016

Arduino Mega Draw bitmap on 3 2 480 x 320 TFT LCD Shield using UTFT

Arduino Mega Draw bitmap on 3 2 480 x 320 TFT LCD Shield using UTFT


This post show how to draw bitmap on 3.2" 480 x 320 TFT LCD Shield using UTFT, run on Arduino Mega 2560.



Before start, you have to install UTFT library on your Arduino IDE.

Once installed, its a program ImageConverter565.exe in the Tools directory under the library, used to convert image files to array in .c (.raw) format, can be loaded in our sketch.

This video show how:


Example code, MegaUTFTBitmap.ino
#include <UTFT.h>

UTFT myGLCD(CTE32HR,38,39,40,41);

extern unsigned int Arduinoer[];

void setup() {
// put your setup code here, to run once:
myGLCD.InitLCD();
myGLCD.clrScr();
myGLCD.drawBitmap(0, 0, 100, 100, Arduinoer);

}

void loop() {
// put your main code here, to run repeatedly:

}

Get