UTFT BITMAP Error

Hi,

I’m trying to upload a bitmap sketch, but keep getting the following errors;

The sketch will compile fine, just won’t load. I’ve tried some other sketches, and they load fine.

What am i missing?

Dizzwold.

Binary sketch size: 30,218 bytes (of a 258,048 byte maximum)
avrdude: verification error, first mismatch at byte 0x0404
0x00 != 0xff
avrdude: verification error; content mismatch

#include <UTFT.h>
#include <UTouch.h>
//#if defined(__AVR__)
#include <avr/pgmspace.h>
UTFT myGLCD(ILI9327, 38, 39, 40, 41);
UTouch  myTouch( 6, 5, 4, 3, 2);
unsigned int lightning[4096] PROGMEM={

//bitmap file in here.

};

void setup()
{
  myGLCD.InitLCD();
}
void loop()
{
  myGLCD.fillScr(255, 255, 255);
  myGLCD.setColor(255, 255, 255);
  
  myGLCD.drawBitmap(70, 70, 64, 64, lightning);
}/code]

Does your bitmap file contain 3 33's (or 0x21) in a row?

Hi PaulS,

No, i don’t see any.

All i see a lines of 0xFFFF, lines of 0x0000 and combinations of 0xFFFF & 0x0000.

Dizzwold.

Sorry,

*All i see are lines of 0xFFFF, lines of 0x0000 and combinations of 0xFFFF & 0x0000.