Example using the application launcher.

Dependencies:   DMBasicGUI DMSupport

Example use of the AppLauncher class in the DMBasicGUI library.

This project is used in the TBD guide as a starting point when creating your own menu system. It can also be selected as a template when creating a new project based on the LPC4088 Display Module.

Information

This project works on both the 4.3" and 5" display modules.

This is what it looks like:

/media/uploads/embeddedartists/launcher_cap_000.png

If you click on the Something button:

/media/uploads/embeddedartists/launcher_cap_001.png

image_data.c

Committer:
embeddedartists
Date:
14 months ago
Revision:
4:7a016403f7fd
Parent:
2:e55ed8db46c2

File content as of revision 4:7a016403f7fd:

#define IMAGE_LOCATION
//#define IMAGE_LOCATION  __attribute__((section("SPIFI_MEM"))) 

const unsigned char img_empty[] IMAGE_LOCATION = {
	0x89,0x50,0x4E,0x47,0x0D,0x0A,0x1A,0x0A,0x00,0x00,0x00,0x0D,0x49,0x48,0x44,0x52, 
	0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x40,0x08,0x02,0x00,0x00,0x00,0x25,0x0B,0xE6, 
	0x89,0x00,0x00,0x00,0x09,0x70,0x48,0x59,0x73,0x00,0x00,0x0E,0xC4,0x00,0x00,0x0E, 
	0xC4,0x01,0x95,0x2B,0x0E,0x1B,0x00,0x00,0x02,0x8B,0x49,0x44,0x41,0x54,0x78,0x9C, 
	0xD5,0x9A,0xBF,0x79,0xC2,0x30,0x10,0xC5,0xA5,0x7C,0x19,0xC5,0x6E,0x18,0xC1,0x99, 
	0xC0,0xA4,0xA1,0x4A,0x9B,0x8E,0x96,0x34,0xE9,0x32,0x04,0x29,0xCD,0x08,0xE9,0xC3, 
	0x06,0x66,0x82,0x7C,0x14,0x81,0x5D,0x9C,0xC2,0xC1,0x58,0x3A,0xEB,0xCF,0xE9,0x4E, 
	0x96,0xFC,0x3A,0x23,0x12,0xDE,0x4F,0xD2,0x3D,0x1F,0xC2,0x42,0x2C,0x5C,0xD2,0x3E, 
	0xDC,0x75,0xDD,0x3C,0x3E,0xEC,0x92,0xD2,0xE8,0x73,0x7A,0x20,0x13,0xDF,0x9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x0C,0xAD,0xA2,0x52,0xA8, 
	0x5C,0x55,0xCA,0x75,0xF5,0xF2,0xCC,0x42,0x40,0x39,0xB6,0x40,0x01,0xE8,0xDF,0xC0, 
	0x4E,0xF1,0x4E,0x4B,0x50,0x4A,0x5F,0x03,0xDE,0x82,0x56,0xA5,0x00,0x3F,0x23,0xE7, 
	0xF3,0xFB,0x36,0x14,0xB4,0x9A,0xD3,0x9D,0x38,0x48,0xC9,0x01,0x38,0xF6,0x24,0xA6, 
	0x06,0x78,0x85,0xCE,0x65,0x62,0x8C,0xB2,0x8B,0x21,0x97,0xD3,0x02,0x30,0xE5,0x72, 
	0x07,0xC4,0x63,0xCF,0x4B,0xB8,0x1A,0x98,0x8E,0x51,0xB1,0x90,0x24,0x85,0x33,0x6B, 
	0x8C,0xD1,0x79,0x17,0xC1,0x4B,0x93,0xEE,0xC5,0xF8,0x99,0xB9,0x49,0xD3,0x99,0x2C, 
	0x85,0xC5,0x9B,0x03,0x20,0x5B,0x0D,0x33,0xBB,0xC8,0xA7,0x16,0x8D,0x8F,0x5D,0x8A, 
	0x25,0x30,0x38,0x1E,0x7C,0xED,0x95,0x2D,0x06,0xAC,0x49,0x63,0x8D,0xE6,0xC6,0x90, 
	0x49,0x9C,0xF0,0xEB,0x0F,0xB7,0x97,0x16,0xD2,0x38,0x59,0xDC,0x57,0x00,0x00,0x00, 
	0x00,0x49,0x45,0x4E,0x44,0xAE,0x42,0x60,0x82
};
const unsigned int img_size_empty = sizeof(img_empty);

const unsigned char img_ok[] IMAGE_LOCATION = {
	0x89,0x50,0x4E,0x47,0x0D,0x0A,0x1A,0x0A,0x00,0x00,0x00,0x0D,0x49,0x48,0x44,0x52, 
	0x00,0x00,0x00,0x28,0x00,0x00,0x00,0x28,0x08,0x02,0x00,0x00,0x00,0x03,0x9C,0x2F, 
	0x3A,0x00,0x00,0x00,0x01,0x73,0x52,0x47,0x42,0x00,0xAE,0xCE,0x1C,0xE9,0x00,0x00, 
	0x00,0x04,0x67,0x41,0x4D,0x41,0x00,0x00,0xB1,0x8F,0x0B,0xFC,0x61,0x05,0x00,0x00, 
	0x00,0x09,0x70,0x48,0x59,0x73,0x00,0x00,0x0E,0xC3,0x00,0x00,0x0E,0xC3,0x01,0xC7, 
	0x6F,0xA8,0x64,0x00,0x00,0x01,0xE1,0x49,0x44,0x41,0x54,0x58,0x47,0xED,0x92,0xCB, 
	0x4A,0xC3,0x40,0x14,0x86,0xFB,0x42,0x0A,0xDD,0xB8,0x10,0xDC,0xB9,0xF2,0x11,0xDC, 
	0x0A,0x22,0x22,0xDD,0x74,0xE1,0x42,0x70,0x2B,0x0A,0xDE,0x10,0x41,0xD1,0x55,0x51, 
	0x4A,0x57,0x56,0x11,0x45,0xBC,0x80,0xE0,0x05,0x15,0x04,0x41,0x45,0xD1,0x85,0xE0, 
	0x23,0x68,0x9A,0x26,0x93,0xA6,0x06,0x73,0xE6,0x27,0x9E,0xCC,0x24,0xAD,0x49,0x83, 
	0x0B,0x7F,0xBE,0x45,0x66,0xE6,0x9F,0xF3,0xC1,0x90,0x5C,0xEE,0x24,0xDF,0x12,0xC7, 
	0xA1,0x9D,0x84,0xF0,0x75,0x66,0xF0,0x75,0x66,0xE0,0xAB,0xD7,0x18,0xCE,0x00,0xE8, 
	0xFE,0xC5,0x9D,0x06,0xBA,0x44,0xE2,0x7E,0xA3,0xD0,0x67,0x8C,0xF4,0x18,0x43,0x6C, 
	0x3F,0x02,0xE8,0x12,0x89,0x07,0xCC,0x22,0xDB,0x89,0x05,0xBA,0x4E,0x3D,0xF5,0xA8, 
	0x31,0x33,0x6D,0x96,0x72,0x1F,0xDD,0x6C,0x1F,0xBA,0xF4,0xC5,0x67,0xE2,0xAE,0x29, 
	0xB3,0x58,0xAF,0xE4,0x8C,0xAE,0xE0,0x29,0x74,0x69,0x8A,0xAF,0x9C,0x07,0x12,0x7E, 
	0xC7,0x76,0x05,0x2B,0x78,0x40,0x97,0x9A,0x98,0x6C,0x32,0x4F,0xCE,0x1B,0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