Thursday, June 16, 2016

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, it's 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:

}

6 comments:

  1. HI, thanks for that really work very well, but i woudl like to know how we can see the image bigger becausa when i try to increase the piexels the arduino consule send the error "size of the array is too large"

    ReplyDelete
  2. Hello
    sorry for my english is bad
    your Skecth of icon bitmap for arduino due

    myGLCD.drawBitmap (xxxxxxxxxxxx);

    is no run,
    no matching function for call utft

    ReplyDelete
  3. Install first the correct UTFT library. And TRY again, ..., be carefully to size of bitmap. Have fun!

    ReplyDelete
  4. Hello I have a problem about Picture (Bitmap)
    I have data from Covense Bitmap File to array Size of 100,000-200,000 byte

    in Arduino Program Can't Vertify because So size of arry is Large
    I tried to be Change of type value "long int" "long Double" So can't it

    May I so ask for help to me please ? tell me about Edit Code
    Thank you Sir .......... Astro Rom

    ReplyDelete
  5. please explain step by step what you are doing in video or please note it somewhere and put it up for others to copy ,remember step by step

    ReplyDelete