Yes I researched this for a while, can't find answer. I am using newest 565 converter from:
Rinky-Dink Electronics to create .c file from 100x60 or so jpg. No issue there. I am using a Teensy 3.2 with only 37% prog storage and 9% dynamic mem used.
I am using UTFT and I do not want to use SD card for one image, I would like to use onboard teensy mem. Using ILI9341 320x240 TFT, screen works without issue.
I can get an older "icon" image to display, but not my small 565 converted jpg image.
WORKS with zero issues:
extern unsigned short icon[0x400];
myGLCD.drawBitmap (32, 32, 32, 32, icon); //(x,y,width,height, image.c)
//.c file in .ino folder
// Generated by : ImageConverter 565 v1.0
// Generated from: taskmgr.png
// Time generated: 11.10.2010 22:51:23
// Size : 2 048 Bytes
const unsigned short icon[0x400] ={
0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, etc.....
};
DOES NOT WORK:
extern const unsigned int engsml[6400]; // compiles no issue
//extern unsigned int engsml[6400]; // compiles
//extern unsigned int engsml[];// compiles
myGLCD.drawBitmap (32, 32, 100, 64, engsml); // does not compile
//.c file in .ino folder
// Generated by : ImageConverter 565 Online
// Generated from : engsml.jpg
// Time generated : Mon, 10 Dec 18 02:37:35 +0100 (Server timezone: CET)
// Image Size : 100x64 pixels
// Memory usage : 12800 bytes
#if defined(__AVR__)
#include <avr/pgmspace.h>
#elif defined(__PIC32MX__)
#define PROGMEM
#elif defined(__arm__)
#define PROGMEM
#endif
const unsigned short engsml[6400] PROGMEM={
//const unsigned short engsml[6400] ={ // does not work
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, etc.....
};
compile error says I need to add the other three arguments for degrees and rotation so I did this and no compile:
myGLCD.drawBitmap (32, 32, 100, 64, radioactive,0,0,0);
Thx in advance for any pointers......