// Generated by : ImageConverter 565 Online
// Generated from : logo1.jpg
#if defined(__AVR__)
#include <avr/pgmspace.h>
#elif defined(__PIC32MX__)
#define PROGMEM
#elif defined(__arm__)
#define PROGMEM
#endif
const unsigned short logo1[7396] PROGMEM =
{
0xF7EA, 0xFFC9, 0xFFE7, 0xF7E9, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, // 0x0010 (16) pixels
0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, 0xFFE8, // 0x0020 (32) pixels
0xFFE8, 0xFFE8, 0xFFE9, 0xFFE7, 0xFFC6, 0xFFEA, 0xFFD6, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xEFBC, // 0x0030 (48) pixels
void Intro()
{
myGLCD.clrScr();
myGLCD.setBackColor(0, 0, 0); // Sets the background color of the area where the text will be printed to black
myGLCD.setColor(255, 255, 255); // Sets color to white
myGLCD.drawBitmap(117, 10, 86, 86, logo1);
myGLCD.setFont(BigFont); // Sets font to big
myGLCD.print("WB&J N.B.", CENTER, 106); // Prints the string on the screen
Working on my first Arduino and C++ project, a 2650 with a TFT. I have finally gotten the FSM sketch to display the five pages, with hardware triggers, and the touchscreen working. The code might not be pretty, but it does what I want. I decided to add an introduction page with a bitmap image. My sketch already had two other bitmaps so I was familiar with the conversion of a jpeg and the code. When I added the third bitmap to the sketch, my screen just flashes white. If I uncomment the line to display the bitmap, the sketch works. I also tried changing the code to call one of the original sketches, that also worked. I assumed that my new bitmap was corrupted, so I did another conversion and even tried a new fourth bitmap. The TFT still flashed white.
Is there a limit to the bitmaps that I can use? Is there a way to verify if the c file is corrupted? I am not using the SD card, implementing it sounded like more work than it was worth. The bitmaps are part of the sketch.
Compiling the sketch shows “Sketch uses 82748 bytes (32%) of program storage space. Maximum is 253952 bytes. Global variables use 1111 bytes (13%) of dynamic memory, leaving 7081 bytes for local variables. Maximum is 8192 bytes.” I have included snippets of my sketch to display the new bitmap.