Example that shows how to use emWin. This example is based on NXP's POS demo available at lpcware.com
Dependencies: EALib ewgui mbed
Diff: bottledwater.cpp
- Revision:
- 0:2052561807c5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bottledwater.cpp Mon Dec 16 10:58:05 2013 +0000 @@ -0,0 +1,177 @@ +/********************************************************************* +* SEGGER Microcontroller GmbH & Co. KG * +* Solutions for real time microcontroller applications * +* www.segger.com * +********************************************************************** +* * +* C-file generated by * +* * +* Bitmap converter for emWin V5.16. * +* Compiled Jun 4 2012, 15:48:30 * +* (C) 1998 - 2010 Segger Microcontroller GmbH & Co. KG * +* * +********************************************************************** +* * +* Source file: bottledwater * +* Dimensions: 22 * 55 * +* NumColors: 248 * +* * +********************************************************************** +*/ + +#include <stdlib.h> + +#include "GUI.h" + +#ifndef GUI_CONST_STORAGE + #define GUI_CONST_STORAGE const +#endif + +/* Palette +The following are the entries of the palette table. +Every entry is a 32-bit value (of which 24 bits are actually used) +the lower 8 bits represent the Red component, +the middle 8 bits represent the Green component, +the highest 8 bits (of the 24 bits used) represent the Blue component +as follows: 0xBBGGRR +*/ + +static GUI_CONST_STORAGE GUI_COLOR Colorsbottledwater[] = { + 0xFFFFFF,0x000000,0xE7C586,0xFCEBCC + ,0xE8D6B7,0xF5DBB7,0xF7E9D1,0xFFF7C6 + ,0xD8B986,0xE4C479,0xF6D598,0xD8B678 + ,0xE5CCA4,0xCAA769,0xEACB9B,0xFEF8D4 + ,0xF4DAAA,0xFCE4A9,0xFBE4C4,0xB89737 + ,0xECD4AC,0xF3E2BC,0xFCE3BC,0xE6DAC8 + ,0xDBC597,0xFFFAB7,0xFEFFE7,0xA57734 + ,0xF2CD95,0xECD19C,0xD7CCB7,0xEBD3A3 + ,0xFADBAB,0xFCEBC5,0xC89935,0xAA8742 + ,0xD8AB71,0xE2BC86,0xF3CA88,0xFEE596 + ,0xDBD1B9,0xF2D4A2,0xF6DDC4,0xF4E4C3 + ,0x997737,0x958866,0xD6B66A,0xAAA188 + ,0xEDD28B,0xEDCD91,0xD9C8A7,0xCBC4B7 + ,0xF8DAA4,0xEBE0C7,0xF2E3CC,0xFFFFF7 + ,0x867866,0xA78539,0xC7932C,0xE4A92B + ,0x8C8372,0xCAB758,0xD6AC6C,0xE3BD7A + ,0xDDC274,0xAA9D8E,0xDAC08B,0xF7D589 + ,0xE6C898,0xFDE5C9,0xECE6D5,0x633C30 + ,0x6C4226,0x714A28,0x7D5228,0x796746 + ,0x7B7868,0x9A6A25,0x8A7B55,0xD49A33 + ,0xC8A537,0xDBA739,0xBAA553,0xA59864 + ,0xBDA665,0xCCA14E,0xE5B448,0xC9B465 + ,0xC8A872,0xA59E8D,0xA9A398,0xBBB29B + ,0xC6B599,0xDBBD93,0xC5BAA7,0xE3C59B + ,0xFFE586,0xEED8A4,0xF4DAA4,0xF1D6AA + ,0xFFFAA9,0x462728,0x6C4537,0x734C3C + ,0x776B55,0x79795D,0x845D37,0x966621 + ,0x83623A,0x976D30,0x986B3D,0xA8762E + ,0xA4782D,0xAB7D2B,0xA06E35,0xB97F34 + ,0x997846,0xA97C48,0x987C61,0x847B70 + ,0xB7842C,0xB2863B,0xBC8E3C,0x928055 + ,0xB48941,0x8E816B,0x958E7E,0xBBA36C + ,0xC39443,0xC09945,0xC99B47,0xDDB747 + ,0xCDA254,0xE9BF53,0xC59C62,0xC6A670 + ,0xEBB868,0xE0C16F,0xFDCC7A,0x9B9B8C + ,0x9C9D90,0xA39A83,0xA99E96,0xB1A289 + ,0xB0AD90,0xBEB291,0xBCB4A5,0xC3B781 + ,0xD3BC92,0xD1BF9A,0xDABD98,0xE3B991 + ,0xD6C18B,0xE7C993,0xE9D392,0xE6D4A1 + ,0xECD9AF,0xFCE8B4,0xDBD3C5,0xDFDAD2 + ,0xE1DAD3,0xF3E8CF,0xF3EBE1,0x44322E + ,0x5D3628,0x7C4F15,0x54423E,0x63563D + ,0x766F61,0x7A7B77,0x825527,0x895F22 + ,0x84592B,0x88592B,0x8E6427,0x9D772F + ,0x8B6139,0x916234,0x96693B,0xA5732B + ,0xB37C2B,0x8D6F44,0x826C48,0x9D6E40 + ,0x947D56,0x867E7A,0xBC8931,0xBE8439 + ,0xC0863B,0xC3A62E,0xD2B53D,0x9D8257 + ,0x93815C,0xAD9846,0xB59247,0xB79A53 + ,0x868362,0x86816C,0x908673,0x928C73 + ,0x9D8F74,0x91877B,0x97917E,0xB78B6E + ,0xB39264,0xB49E64,0xB3956D,0xAA9774 + ,0xADA768,0xB1AB6C,0xC69A48,0xC89E53 + ,0xC3A742,0xCAAE49,0xDDAE45,0xD1A44E + ,0xD9A34F,0xCAAB59,0xD3A650,0xDBA551 + ,0xD6A953,0xDFA955,0xD0A65B,0xD2A85D + ,0xE2AC58,0xC4A479,0xCBB170,0xF0BD6D + ,0xECC055,0xF5C65D,0x969385,0x9B9484 + ,0xAB9A81,0xB6B09D,0xC2A88F,0xD8AE86 + ,0xC9AF96,0xD0BEBA,0xDEC887,0xE1C191 + ,0xE4D09C,0xE4D4AF,0xF8CFB4,0xEEE8A9 + ,0xFCE1B2,0xCDC8C0,0xEDCECF,0xF7D8D9 +}; + +static GUI_CONST_STORAGE GUI_LOGPALETTE Palbottledwater = { + 248, /* number of entries */ + 1, /* Has transparency */ + &Colorsbottledwater[0] +}; + +static GUI_CONST_STORAGE unsigned char acbottledwater[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x20, 0x20, 0x1F, 0x14, 0x1D, 0x29, 0x0E, 0x5F, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x77, 0xCC, 0x58, 0x5C, 0x18, 0x42, 0x7F, 0xB5, 0x6C, 0x7E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xDB, 0xE0, 0xDA, 0xD7, 0x7A, 0x71, 0x4D, 0x6B, 0x7E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7D, 0xD8, 0xDD, 0xDC, 0x82, 0x7A, 0x71, 0x4D, 0x4D, 0xE7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC5, 0xDF, 0x84, 0x84, 0xD2, 0x79, 0x70, 0x6D, 0xAE, 0xCA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8D, 0xD3, 0xDE, 0x55, 0x80, 0x79, 0x70, 0x6D, 0xAB, 0xE9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x00, 0x03, 0x16, 0x05, 0x0C, 0xB8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5A, 0x21, 0x00, 0x00, 0x12, 0x16, 0x63, 0x14, 0x0C, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0xC9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x9E, 0x92, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x5A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x38, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x8C, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x00, 0x00, 0x1E, 0x1E, 0x00, 0x00, + 0x00, 0x5B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x03, 0x03, 0x00, 0x06, 0x06, 0x07, 0x07, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x03, 0x00, + 0x00, 0xC7, 0x28, 0x00, 0x00, 0x00, 0xA0, 0x15, 0x15, 0x2A, 0x2A, 0x35, 0x35, 0x05, 0x15, 0x17, 0x17, 0x00, 0x00, 0x04, 0x68, 0x00, + 0x00, 0x00, 0x91, 0x00, 0x00, 0x19, 0x34, 0x14, 0x10, 0x10, 0x10, 0x61, 0x61, 0x04, 0x04, 0x04, 0x04, 0x06, 0x00, 0x00, 0x5C, 0x00, + 0xA9, 0x00, 0x91, 0x00, 0x00, 0x08, 0x08, 0x18, 0x0C, 0x0C, 0x63, 0x10, 0x11, 0x2A, 0x12, 0x21, 0x21, 0x00, 0x00, 0x00, 0x1E, 0x5A, + 0x3C, 0x05, 0x18, 0x00, 0x00, 0x09, 0x09, 0x26, 0x0A, 0x34, 0x34, 0x11, 0x05, 0x15, 0x12, 0x12, 0x03, 0x00, 0x00, 0x00, 0x17, 0x38, + 0x5E, 0x96, 0x05, 0x00, 0x00, 0x3F, 0x09, 0x09, 0x02, 0x11, 0x11, 0x10, 0x05, 0x15, 0x15, 0x45, 0x03, 0x00, 0x00, 0x00, 0x00, 0x38, + 0x00, 0x08, 0x07, 0x00, 0x06, 0x0D, 0x86, 0x3E, 0x0B, 0x0B, 0x08, 0x08, 0x08, 0x98, 0x18, 0x0C, 0x20, 0x06, 0x00, 0x00, 0x00, 0xE8, + 0x00, 0x08, 0x07, 0x03, 0x17, 0x86, 0x0D, 0x0D, 0x3E, 0x87, 0x24, 0x94, 0x5D, 0x98, 0x42, 0x0E, 0x29, 0x1E, 0x35, 0x00, 0x00, 0x8F, + 0x00, 0xCE, 0x16, 0x03, 0x05, 0x0D, 0x0D, 0x0D, 0x0D, 0x0B, 0x3F, 0x08, 0x08, 0x25, 0x31, 0x44, 0x0E, 0x1E, 0x03, 0x03, 0x05, 0x2F, + 0x59, 0xE1, 0x05, 0x04, 0xF1, 0x0D, 0x0D, 0x0D, 0x24, 0x0A, 0x02, 0x24, 0x0B, 0x25, 0x02, 0xEF, 0x0E, 0x32, 0x03, 0x16, 0x16, 0x2D, + 0x53, 0x09, 0x27, 0x14, 0x0C, 0x0D, 0x58, 0x24, 0x24, 0x0B, 0x0B, 0x0B, 0x0B, 0x97, 0x25, 0x96, 0x5F, 0x32, 0x12, 0x11, 0xC3, 0x2D, + 0x53, 0x2E, 0x2E, 0x9C, 0x07, 0x87, 0x58, 0x3F, 0x3E, 0x2E, 0x2E, 0x0B, 0x09, 0xEB, 0x97, 0x5D, 0x5F, 0x0F, 0x53, 0x2C, 0x23, 0x2D, + 0x95, 0xD9, 0x89, 0x18, 0x9B, 0x20, 0x1D, 0x09, 0x09, 0x85, 0x83, 0x3B, 0x3B, 0x22, 0x22, 0x78, 0xB4, 0x1B, 0x72, 0x1B, 0x23, 0xEC, + 0x07, 0x19, 0x89, 0x18, 0x9B, 0x1D, 0x1D, 0x43, 0x09, 0x85, 0x56, 0x3B, 0x3B, 0x22, 0x3A, 0xBA, 0x78, 0x1B, 0x72, 0x1B, 0x11, 0xEA, + 0x4E, 0x64, 0x07, 0x07, 0x11, 0x27, 0x30, 0x30, 0x40, 0xE2, 0x54, 0x55, 0x81, 0xC2, 0x39, 0x75, 0x2C, 0xCB, 0x05, 0x20, 0x75, 0x76, + 0x4E, 0x23, 0x52, 0x54, 0x54, 0x57, 0x0B, 0x27, 0x19, 0x19, 0x19, 0x64, 0x64, 0x27, 0x2E, 0x6B, 0xA5, 0x48, 0x49, 0xAA, 0xB2, 0x76, + 0xBF, 0x22, 0x22, 0x52, 0x0D, 0x57, 0x57, 0xBE, 0x50, 0x50, 0x3A, 0x7C, 0x39, 0xB7, 0xAD, 0x66, 0x47, 0xA3, 0xA6, 0x49, 0x6C, 0x7B, + 0x74, 0x13, 0x13, 0x19, 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0x43, 0x60, 0x27, 0x9D, 0x19, 0x03, 0x00, 0x00, 0x00, 0x8E, + 0x00, 0x93, 0x07, 0x0F, 0x2B, 0x40, 0x09, 0x02, 0x02, 0x26, 0x0A, 0x0A, 0x34, 0x9C, 0x05, 0x35, 0x36, 0x00, 0x00, 0x00, 0x00, 0x2F, + 0x00, 0x93, 0x07, 0x03, 0x04, 0x40, 0x09, 0x02, 0x02, 0x02, 0x31, 0x0A, 0x34, 0x04, 0x15, 0x36, 0x06, 0x00, 0x00, 0x00, 0x00, 0x2F, + 0x00, 0x94, 0x07, 0x45, 0x05, 0x0B, 0x40, 0x25, 0x02, 0x02, 0x1D, 0x1F, 0x10, 0x05, 0x16, 0x21, 0x12, 0x00, 0x00, 0x00, 0x00, 0x2F, + 0x00, 0x5D, 0x07, 0x12, 0x05, 0x08, 0x02, 0x09, 0x02, 0xEE, 0x9A, 0x1F, 0x20, 0x21, 0x12, 0x12, 0x03, 0x00, 0x00, 0x00, 0x00, 0x2F, + 0x00, 0x32, 0x03, 0x12, 0x04, 0x02, 0x02, 0x25, 0x26, 0x1C, 0x31, 0x10, 0xF4, 0x06, 0x03, 0x36, 0xA1, 0x00, 0x00, 0x00, 0x00, 0x59, + 0x00, 0x0C, 0x06, 0x03, 0x2B, 0x31, 0x02, 0x02, 0x1C, 0x31, 0x0A, 0x1F, 0x10, 0x05, 0x95, 0x0F, 0xA1, 0x00, 0x00, 0x00, 0x00, 0x41, + 0x00, 0x28, 0x03, 0x06, 0x36, 0x0A, 0x0A, 0x44, 0x44, 0x1C, 0x1C, 0xF0, 0x9D, 0x17, 0x45, 0x06, 0x06, 0x46, 0x00, 0x00, 0x00, 0x41, + 0x00, 0x04, 0x03, 0x0F, 0x03, 0x0A, 0x0A, 0x0E, 0x0E, 0x1C, 0x29, 0x61, 0x1F, 0x2A, 0x2A, 0x2A, 0x36, 0x46, 0x00, 0x00, 0x00, 0x41, + 0x00, 0x04, 0x0F, 0x07, 0x11, 0x02, 0x0B, 0x02, 0x08, 0x02, 0x02, 0x02, 0x0E, 0x63, 0x14, 0x0C, 0x18, 0x05, 0x00, 0x00, 0x00, 0x8C, + 0x00, 0x21, 0x0F, 0x0E, 0x0A, 0x08, 0x25, 0x02, 0x02, 0x02, 0x30, 0x0E, 0x0E, 0x0C, 0x0C, 0x0C, 0x04, 0x04, 0x45, 0x00, 0x00, 0x8B, + 0x00, 0x2B, 0x32, 0x1F, 0x44, 0x42, 0x02, 0x99, 0x99, 0x9A, 0x29, 0x14, 0x14, 0x04, 0x04, 0x04, 0x04, 0x17, 0x00, 0x00, 0x00, 0x8B, + 0x00, 0x5C, 0x04, 0x10, 0x10, 0x0E, 0x29, 0x29, 0x20, 0x11, 0x11, 0x05, 0x16, 0x2B, 0x03, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x59, + 0x00, 0x5B, 0x04, 0x04, 0x21, 0x0C, 0x14, 0x05, 0x05, 0x2B, 0x2B, 0x06, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE6, + 0x4C, 0x1A, 0x17, 0x15, 0x15, 0x14, 0x05, 0x16, 0x16, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x68, + 0x00, 0x90, 0x00, 0x00, 0x00, 0x35, 0x06, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x33, 0x92, 0x00, + 0x00, 0x00, 0x46, 0x5B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x28, 0x3C, 0x9E, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0xF5, 0x4C, 0x00, 0x00, 0x00, 0x00, 0x00, 0xA0, 0x9F, 0x17, 0x9F, 0x5E, 0xA8, 0x33, 0x00, 0x00, 0x00, 0x00 +}; + +GUI_CONST_STORAGE GUI_BITMAP bmbottledwater = { + 22, /* XSize */ + 55, /* YSize */ + 22, /* BytesPerLine */ + 8, /* BitsPerPixel */ + acbottledwater, /* Pointer to picture data (indices) */ + &Palbottledwater /* Pointer to palette */ +}; + +/* *** End of file *** */