Demo for using bitmap graphic

Dependencies:   C12832_lcd LCD_fonts mbed

Fork of app-board-LCD by Chris Styles

A demo for the bitmap graphic :

Committer:
dreschpe
Date:
Fri Dec 21 21:59:16 2012 +0000
Revision:
3:48407a94ff89
Happy Christmas !

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dreschpe 3:48407a94ff89 1 #ifndef graphics_H
dreschpe 3:48407a94ff89 2 #define graphics_H
dreschpe 3:48407a94ff89 3 #include "C12832_lcd.h"
dreschpe 3:48407a94ff89 4
dreschpe 3:48407a94ff89 5 // graphics for the Christmas Demo
dreschpe 3:48407a94ff89 6 //
dreschpe 3:48407a94ff89 7 // Copyright (c) 2012 Peter Drescher - DC2PD
dreschpe 3:48407a94ff89 8 // made by hand - I have to look for a tool ;-)
dreschpe 3:48407a94ff89 9 // Released under the MIT License: http://mbed.org/license/mit
dreschpe 3:48407a94ff89 10
dreschpe 3:48407a94ff89 11 static char Tree[] = {
dreschpe 3:48407a94ff89 12 0x00, 0x00, 0x40, 0x00, 0x00, // XXXXXXXX, XXXXXXXX, X_XXXXXX, XXXXXXXX, XXXX
dreschpe 3:48407a94ff89 13 0x00, 0x00, 0x40, 0x00, 0x00, // XXXXXXXX, XXXXXXXX, X_XXXXXX, XXXXXXXX, XXXX
dreschpe 3:48407a94ff89 14 0x00, 0x00, 0xE0, 0x00, 0x00, // XXXXXXXX, XXXXXXXX, ___XXXXX, XXXXXXXX, XXXX
dreschpe 3:48407a94ff89 15 0x00, 0x01, 0xE0, 0x00, 0x00, // XXXXXXXX, XXXXXXX_, ___XXXXX, XXXXXXXX, XXXX
dreschpe 3:48407a94ff89 16 0x00, 0x03, 0xF0, 0x00, 0x00, // XXXXXXXX, XXXXXX__, ____XXXX, XXXXXXXX, XXXX
dreschpe 3:48407a94ff89 17 0x00, 0x07, 0xF8, 0x00, 0x00, // XXXXXXXX, XXXXX___, _____XXX, XXXXXXXX, XXXX
dreschpe 3:48407a94ff89 18 0x00, 0x07, 0x7C, 0x00, 0x00, // XXXXXXXX, XXXXX___, X_____XX, XXXXXXXX, XXXX
dreschpe 3:48407a94ff89 19 0x00, 0x0E, 0xBC, 0x00, 0x00, // XXXXXXXX, XXXX___X, _X____XX, XXXXXXXX, XXXX
dreschpe 3:48407a94ff89 20 0x00, 0x03, 0x78, 0x00, 0x00, // XXXXXXXX, XXXXXX__, X____XXX, XXXXXXXX, XXXX
dreschpe 3:48407a94ff89 21 0x00, 0x07, 0xfC, 0x00, 0x00, // XXXXXXXX, XXXXX___, ______XX, XXXXXXXX, XXXX
dreschpe 3:48407a94ff89 22 0x00, 0x0F, 0xfe, 0x00, 0x00, // XXXXXXXX, XXXX____, _______X, XXXXXXXX, XXXX
dreschpe 3:48407a94ff89 23 0x00, 0x1f, 0xff, 0x80, 0x00, // XXXXXXXX, XXX_____, ________, _XXXXXXX, XXXX
dreschpe 3:48407a94ff89 24 0x00, 0x7f, 0xff, 0xc0, 0x00, // XXXXXXXX, X_______, ________, __XXXXXX, XXXX
dreschpe 3:48407a94ff89 25 0x00, 0x0f, 0xdc, 0x00, 0x00, // XXXXXXXX, XXXX____, __X___XX, XXXXXXXX, XXXX
dreschpe 3:48407a94ff89 26 0x00, 0x3F, 0xaf, 0x00, 0x00, // XXXXXXXX, XX______, _X_X____, XXXXXXXX, XXXX
dreschpe 3:48407a94ff89 27 0x00, 0xff, 0xdf, 0xc0, 0x00, // XXXXXXXX, ________, __X_____, __XXXXXX, XXXX
dreschpe 3:48407a94ff89 28 0x01, 0xff, 0xff, 0xf0, 0x00, // XXXXXXX_, ________, ________, ____XXXX, XXXX
dreschpe 3:48407a94ff89 29 0x07, 0xf7, 0xff, 0xfc, 0x00, // XXXXX___, ____X___, ________, ______XX, XXXX
dreschpe 3:48407a94ff89 30 0x0f, 0xeb, 0xff, 0x7C, 0x00, // XXXX____, ___X_X__, ________, X_____XX, XXXX
dreschpe 3:48407a94ff89 31 0x03, 0xf7, 0xfe, 0xA0, 0x00, // XXXXXX__, ____X___, _______X, _X_XXXXX, XXXX
dreschpe 3:48407a94ff89 32 0x1f, 0xff, 0xff, 0x78, 0x00, // XXX_____, ________, ________, X____XXX, XXXX
dreschpe 3:48407a94ff89 33 0x7F, 0xff, 0xff, 0xfe, 0x00, // X_______, ________, ________, _______X, XXXX
dreschpe 3:48407a94ff89 34 0xff, 0xff, 0xff, 0xff, 0x80, // ________, ________, ________, ________, _XXX
dreschpe 3:48407a94ff89 35 0x0f, 0xff, 0xff, 0xf3, 0x80, // XXXX____, ________, ________, ____XX__, _XXX
dreschpe 3:48407a94ff89 36 0x00, 0x00, 0xc0, 0x01, 0x00, // XXXXXXXX, XXXXXXXX, __XXXXXX, XXXXXXX_, XXXX
dreschpe 3:48407a94ff89 37 0x00, 0x00, 0xc0, 0x02, 0x80, // XXXXXXXX, XXXXXXXX, __XXXXXX, XXXXXX_X, _XXX
dreschpe 3:48407a94ff89 38 0x00, 0x00, 0xc0, 0x01, 0x00, // XXXXXXXX, XXXXXXXX, __XXXXXX, XXXXXXX_, XXXX
dreschpe 3:48407a94ff89 39 0x00, 0x00, 0x00, 0x00, 0x00 // XXXXXXXX, XXXXXXXX, XXXXXXXX, XXXXXXXX, XXXX
dreschpe 3:48407a94ff89 40 };
dreschpe 3:48407a94ff89 41
dreschpe 3:48407a94ff89 42 Bitmap bitmTree = {
dreschpe 3:48407a94ff89 43 36, // XSize
dreschpe 3:48407a94ff89 44 28, // YSize
dreschpe 3:48407a94ff89 45 5, // Bytes in Line
dreschpe 3:48407a94ff89 46 Tree, // Pointer to picture data
dreschpe 3:48407a94ff89 47 };
dreschpe 3:48407a94ff89 48
dreschpe 3:48407a94ff89 49
dreschpe 3:48407a94ff89 50 static char Santa1[] = {
dreschpe 3:48407a94ff89 51 0x07, 0x00, 0x00, // XXXXX___, XXXXXXXX, X
dreschpe 3:48407a94ff89 52 0x05, 0x00, 0x00, // XXXXX_X_, XXXXXXXX, X
dreschpe 3:48407a94ff89 53 0x07, 0x00, 0x00, // XXXXX___, XXXXXXXX, X
dreschpe 3:48407a94ff89 54 0x07, 0xC0, 0x00, // XXXXX___, __XXXXXX, X
dreschpe 3:48407a94ff89 55 0x07, 0xE0, 0x00, // XXXXX___, ___XXXXX, X
dreschpe 3:48407a94ff89 56 0x07, 0xF0, 0x00, // XXXXX___, ____XXXX, X
dreschpe 3:48407a94ff89 57 0x0F, 0xF8, 0x00, // XXXX____, _____XXX, X
dreschpe 3:48407a94ff89 58 0x1c, 0x08, 0x00, // XXX___XX, XXXX_XXX, X
dreschpe 3:48407a94ff89 59 0x08, 0xA8, 0x00, // XXXX_XXX, _X_X_XXX, X
dreschpe 3:48407a94ff89 60 0x0C, 0x08, 0x00, // XXXX__XX, XXXX_XXX, X
dreschpe 3:48407a94ff89 61 0x06, 0x28, 0x00, // XXXXX__X, XX_X_XXX, X
dreschpe 3:48407a94ff89 62 0x03, 0x98, 0x00, // XXXXXX__, _XX__XXX, X
dreschpe 3:48407a94ff89 63 0x0d, 0xfe, 0x00, // XXXX__X_, _______X, X
dreschpe 3:48407a94ff89 64 0x78, 0xf3, 0x00, // X____XXX, ____XX__, X
dreschpe 3:48407a94ff89 65 0x50, 0x61, 0x80, // X_X_XXXX, X__XXXX_, _
dreschpe 3:48407a94ff89 66 0xd0, 0x60, 0x80, // __X_XXXX, X__XXXXX, _
dreschpe 3:48407a94ff89 67 0x90, 0x00, 0x80, // _XX_XXXX, XXXXXXXX, _
dreschpe 3:48407a94ff89 68 0x90, 0x01, 0x00, // _XX_XXXX, XXXXXXX_, X
dreschpe 3:48407a94ff89 69 0x90, 0x01, 0x00, // _XX_XXXX, XXXXXXX_, X
dreschpe 3:48407a94ff89 70 0xd0, 0x03, 0x00, // __X_XXXX, XXXXXX__, X
dreschpe 3:48407a94ff89 71 0x70, 0x02, 0x00, // X___XXXX, XXXXXX_X, X
dreschpe 3:48407a94ff89 72 0x1f, 0xfc, 0x00, // XXX_____, ______XX, X
dreschpe 3:48407a94ff89 73 0x07, 0xfc, 0x00, // XXXXX___, ______XX, X
dreschpe 3:48407a94ff89 74 0x07, 0x0c, 0x00, // XXXXX___, XXXX__XX, X
dreschpe 3:48407a94ff89 75 0x07, 0x0c, 0x00, // XXXXX___, XXXX__XX, X
dreschpe 3:48407a94ff89 76 0x07, 0xbc, 0x00, // XXXXX___, _X____XX, X
dreschpe 3:48407a94ff89 77 0x03, 0x38, 0x00, // XXXXXX__, XX___XXX, X
dreschpe 3:48407a94ff89 78 0x00, 0x20, 0x00, // XXXXXXXX, XX_XXXXX, X
dreschpe 3:48407a94ff89 79 };
dreschpe 3:48407a94ff89 80
dreschpe 3:48407a94ff89 81 Bitmap bitmSan1 = {
dreschpe 3:48407a94ff89 82 17, // XSize
dreschpe 3:48407a94ff89 83 28, // YSize
dreschpe 3:48407a94ff89 84 3, // Bytes in Line
dreschpe 3:48407a94ff89 85 Santa1 , // Pointer to picture data
dreschpe 3:48407a94ff89 86 };
dreschpe 3:48407a94ff89 87
dreschpe 3:48407a94ff89 88
dreschpe 3:48407a94ff89 89 static char Santa2[] = {
dreschpe 3:48407a94ff89 90 0x03, 0x80, 0x00 , // XXXXXX__, _XXXXXXX, X
dreschpe 3:48407a94ff89 91 0x02, 0x80, 0x00 , // XXXXXX_X, _XXXXXXX, X
dreschpe 3:48407a94ff89 92 0x07, 0x00, 0x00 , // XXXXX___, XXXXXXXX, X
dreschpe 3:48407a94ff89 93 0x07, 0xc0, 0x00 , // XXXXX___, __XXXXXX, X
dreschpe 3:48407a94ff89 94 0x07, 0xe0, 0x00 , // XXXXX___, ___XXXXX, X
dreschpe 3:48407a94ff89 95 0x07, 0xf0, 0x00 , // XXXXX___, ____XXXX, X
dreschpe 3:48407a94ff89 96 0x0f, 0xf8, 0x00 , // XXXX____, _____XXX, X
dreschpe 3:48407a94ff89 97 0x1c, 0x08, 0x00 , // XXX___XX, XXXX_XXX, X
dreschpe 3:48407a94ff89 98 0x08, 0xa8, 0x00 , // XXXX_XXX, _X_X_XXX, X
dreschpe 3:48407a94ff89 99 0x0c, 0x08, 0x00 , // XXXX__XX, XXXX_XXX, X
dreschpe 3:48407a94ff89 100 0x06, 0x28, 0x00 , // XXXXX__X, XX_X_XXX, X
dreschpe 3:48407a94ff89 101 0x03, 0x98, 0x00 , // XXXXXX__, _XX__XXX, X
dreschpe 3:48407a94ff89 102 0x0d, 0xf6, 0x00 , // XXXX__X_, ____X__X, X
dreschpe 3:48407a94ff89 103 0x78, 0xf3, 0x00 , // X____XXX, ____XX__, X
dreschpe 3:48407a94ff89 104 0x50, 0x61, 0x80 , // X_X_XXXX, X__XXXX_, _
dreschpe 3:48407a94ff89 105 0xd0, 0x60, 0x80 , // __X_XXXX, X__XXXXX, _
dreschpe 3:48407a94ff89 106 0x90, 0x00, 0x80 , // _XX_XXXX, XXXXXXXX, _
dreschpe 3:48407a94ff89 107 0x90, 0x01, 0x00 , // _XX_XXXX, XXXXXXX_, X
dreschpe 3:48407a94ff89 108 0x90, 0x01, 0x00 , // _XX_XXXX, XXXXXXX_, X
dreschpe 3:48407a94ff89 109 0xd0, 0x03, 0x00 , // __X_XXXX, XXXXXX__, X
dreschpe 3:48407a94ff89 110 0x70, 0x02, 0x00 , // X___XXXX, XXXXXX_X, X
dreschpe 3:48407a94ff89 111 0x1f, 0xfc, 0x00 , // XXX_____, ______XX, X
dreschpe 3:48407a94ff89 112 0x07, 0xdc, 0x00 , // XXXXX___, __X___XX, X
dreschpe 3:48407a94ff89 113 0x07, 0x0e, 0x00 , // XXXXX___, XXXX___X, X
dreschpe 3:48407a94ff89 114 0x07, 0x0e, 0x00 , // XXXXX___, XXXX___X, X
dreschpe 3:48407a94ff89 115 0x0e, 0x0f, 0x80 , // XXXX___X, XXXX____, _
dreschpe 3:48407a94ff89 116 0x08, 0x00, 0x00 , // XXXX_XXX, XXXXXXXX, X
dreschpe 3:48407a94ff89 117 0x00, 0x00, 0x00 , // XXXXXXXX, XXXXXXXX, X
dreschpe 3:48407a94ff89 118 };
dreschpe 3:48407a94ff89 119
dreschpe 3:48407a94ff89 120 Bitmap bitmSan2 = {
dreschpe 3:48407a94ff89 121 17, // XSize
dreschpe 3:48407a94ff89 122 28, // YSize
dreschpe 3:48407a94ff89 123 3, // Bytes in Line
dreschpe 3:48407a94ff89 124 Santa2 , // Pointer to picture data
dreschpe 3:48407a94ff89 125 };
dreschpe 3:48407a94ff89 126
dreschpe 3:48407a94ff89 127
dreschpe 3:48407a94ff89 128 static char Santa3[] = {
dreschpe 3:48407a94ff89 129 0x1c, 0x00, 0x00 , //XXX___XX, XXXXXXXX, X
dreschpe 3:48407a94ff89 130 0x17, 0x00, 0x00 , //XXX_X___, XXXXXXXX, X
dreschpe 3:48407a94ff89 131 0x1f, 0xc0, 0x00 , //XXX_____, __XXXXXX, X
dreschpe 3:48407a94ff89 132 0x07, 0xe0, 0x00 , //XXXXX___, ___XXXXX, X
dreschpe 3:48407a94ff89 133 0x07, 0xf0, 0x00 , //XXXXX___, ____XXXX, X
dreschpe 3:48407a94ff89 134 0x0f, 0xf8, 0x00 , //XXXX____, _____XXX, X
dreschpe 3:48407a94ff89 135 0x1c, 0x08, 0x00 , //XXX___XX, XXXX_XXX, X
dreschpe 3:48407a94ff89 136 0x08, 0xa8, 0x00 , //XXXX_XXX, _X_X_XXX, X
dreschpe 3:48407a94ff89 137 0x0c, 0x08, 0x00 , //XXXX__XX, XXXX_XXX, X
dreschpe 3:48407a94ff89 138 0x06, 0x28, 0x00 , //XXXXX__X, XX_X_XXX, X
dreschpe 3:48407a94ff89 139 0x03, 0x98, 0x00 , //XXXXXX__, _XX__XXX, X
dreschpe 3:48407a94ff89 140 0x0d, 0xf6, 0x00 , //XXXX__X_, ____X__X, X
dreschpe 3:48407a94ff89 141 0x78, 0xf3, 0x00 , //X____XXX, ____XX__, X
dreschpe 3:48407a94ff89 142 0x50, 0xe1, 0x80 , //X_X_XXXX, ___XXXX_, _
dreschpe 3:48407a94ff89 143 0xd0, 0x60, 0x80 , //__X_XXXX, X__XXXXX, _
dreschpe 3:48407a94ff89 144 0x90, 0x00, 0x80 , //_XX_XXXX, XXXXXXXX, _
dreschpe 3:48407a94ff89 145 0x90, 0x01, 0x00 , //_XX_XXXX, XXXXXXX_, X
dreschpe 3:48407a94ff89 146 0x90, 0x01, 0x00 , //_XX_XXXX, XXXXXXX_, X
dreschpe 3:48407a94ff89 147 0x20, 0x03, 0x00 , //__X_XXXX, XXXXXX__, X
dreschpe 3:48407a94ff89 148 0x70, 0x02, 0x00 , //X___XXXX, XXXXXX_X, X
dreschpe 3:48407a94ff89 149 0x1f, 0xfc, 0x00 , //XXX_____, ______XX, X
dreschpe 3:48407a94ff89 150 0x07, 0xdc, 0x00 , //XXXXX___, __X___XX, X
dreschpe 3:48407a94ff89 151 0x07, 0x0e, 0x00 , //XXXXX___, XXXX___X, X
dreschpe 3:48407a94ff89 152 0x07, 0x0e, 0x00 , //XXXXX___, XXXX___X, X
dreschpe 3:48407a94ff89 153 0x07, 0xcf, 0x80 , //XXXXX___, __XX____, _
dreschpe 3:48407a94ff89 154 0x00, 0x00, 0x00 , //XXXXXXXX, XXXXXXXX, X
dreschpe 3:48407a94ff89 155 };
dreschpe 3:48407a94ff89 156
dreschpe 3:48407a94ff89 157 Bitmap bitmSan3 = {
dreschpe 3:48407a94ff89 158 17, // XSize
dreschpe 3:48407a94ff89 159 26, // YSize
dreschpe 3:48407a94ff89 160 3, // Bytes in Line
dreschpe 3:48407a94ff89 161 Santa3 , // Pointer to picture data
dreschpe 3:48407a94ff89 162 };
dreschpe 3:48407a94ff89 163
dreschpe 3:48407a94ff89 164
dreschpe 3:48407a94ff89 165 #endif