Hello i made something!
Jan 17, 2016 21:41:12 GMT 2
Post by laxen on Jan 17, 2016 21:41:12 GMT 2
It took a while to work around all the quirks in the program but now its done.
A honda dax image to display on my 96x96px monochrome OLED diplay (ssd1327)!
The image had to be split up in 12 pieces for it to work with my 8-bit microcontroller.
If anyone else want to try this on their micro, feel free to use the converted .c code below.
Tested on atmega128 with u8glib display driver library.
The code to show the image
The actual image data
A honda dax image to display on my 96x96px monochrome OLED diplay (ssd1327)!
The image had to be split up in 12 pieces for it to work with my 8-bit microcontroller.
If anyone else want to try this on their micro, feel free to use the converted .c code below.
Tested on atmega128 with u8glib display driver library.
The code to show the image
#define daxbity 0
u8g_SetFont(&u8g, dax);
u8g_SetColorIndex(&u8g, 1);
u8g_DrawStr(&u8g, 0, daxbity, "0"); //b1
u8g_DrawStr(&u8g, 24, daxbity, "3"); //b2
u8g_DrawStr(&u8g, 48, daxbity, "6"); //b3
u8g_DrawStr(&u8g, 72, daxbity, "9"); //b4
u8g_SetColorIndex(&u8g, 2); //half white?
u8g_DrawStr(&u8g, 0, daxbity, "1"); //b1
u8g_DrawStr(&u8g, 24, daxbity, "4"); //b2
u8g_DrawStr(&u8g, 48, daxbity, "7"); //b3
u8g_DrawStr(&u8g, 72, daxbity, ":"); //b4
u8g_SetColorIndex(&u8g, 15); //white
u8g_DrawStr(&u8g, 0, daxbity, "2"); //b1
u8g_DrawStr(&u8g, 24, daxbity, "5"); //b2
u8g_DrawStr(&u8g, 48, daxbity, "8"); //b3
u8g_DrawStr(&u8g, 72, daxbity, ";"); //b4
The actual image data
const u8g_fntpgm_uint8_t dax[1316] U8G_FONT_SECTION("dax") = {
0,25,60,0,195,25,0,0,0,0,48,59,0,0,195,25,
0,20,50,150,24,4,195,16,0,0,31,128,0,15,248,0,
7,255,240,1,255,240,1,255,240,1,255,240,1,255,240,1,
255,240,1,255,240,0,127,240,0,15,240,0,0,240,0,0,
0,0,128,0,1,252,0,1,255,224,3,255,240,1,255,240,
0,255,240,0,15,240,0,0,240,0,0,192,0,0,0,0,
255,224,1,255,240,7,255,240,15,255,240,31,195,240,31,7,
48,62,7,16,124,7,0,120,7,0,120,14,0,240,30,0,
240,31,240,240,31,240,240,1,240,240,0,0,240,0,0,120,
0,0,120,0,0,124,0,0,62,0,16,31,0,48,31,192,
240,15,255,240,3,255,240,1,255,240,0,63,128,23,25,75,
24,1,211,7,128,0,7,240,0,7,254,0,7,255,224,7,
255,254,7,239,254,7,192,126,7,192,2,7,128,0,7,192,
0,7,224,0,14,30,0,12,7,224,24,0,0,24,7,248,
48,32,2,32,64,0,65,0,0,194,0,0,128,0,0,4,
0,0,8,0,0,0,0,0,0,0,0,16,0,0,23,37,
111,24,1,199,8,0,0,56,0,0,56,0,0,56,0,0,
24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,8,0,0,0,0,0,16,0,0,0,0,0,32,0,
0,0,0,0,64,0,0,128,0,0,0,0,0,0,7,128,
0,31,24,0,63,28,0,124,30,0,251,30,0,254,54,1,
252,58,1,236,0,1,204,0,1,207,192,1,239,254,1,239,
254,0,255,246,0,255,198,0,126,30,0,63,252,0,31,248,
0,7,224,24,45,135,24,0,197,255,255,248,255,255,252,255,
255,252,255,255,248,255,255,248,255,255,240,255,255,224,255,255,
192,255,255,128,255,255,0,63,252,0,0,0,0,0,0,0,
0,0,0,240,0,0,255,128,0,255,254,0,255,255,255,255,
255,255,63,255,255,1,255,255,0,0,31,0,0,15,192,0,
3,224,0,0,240,0,0,192,0,0,192,0,0,224,0,0,
113,0,0,127,0,0,62,0,0,252,0,0,252,0,1,188,
0,3,60,0,254,60,0,128,127,255,0,127,255,0,252,0,
0,248,0,0,240,0,0,240,0,0,224,0,0,128,0,0,
24,28,84,24,0,207,0,0,15,0,0,127,0,0,255,192,
3,255,255,255,255,255,255,255,255,255,255,15,255,255,0,127,
252,0,1,248,0,0,0,0,0,0,0,0,0,0,0,0,
0,127,224,128,127,240,32,127,240,16,255,192,0,255,128,0,
255,128,0,31,0,0,15,0,0,2,0,0,0,0,0,0,
6,0,1,28,0,1,60,0,1,252,24,16,48,24,0,203,
0,0,12,0,0,63,3,0,127,63,0,127,63,224,255,31,
240,255,142,253,255,128,255,255,193,255,249,3,254,227,3,254,
194,67,254,0,195,255,0,195,255,0,128,0,0,128,0,0,
24,29,87,24,0,199,0,0,1,0,0,1,224,0,0,252,
0,0,254,0,0,255,128,0,255,192,0,255,240,0,255,248,
0,255,252,0,255,252,0,15,254,0,15,254,0,15,254,0,
15,252,0,7,252,1,9,224,1,24,192,15,56,64,15,224,
0,15,192,0,15,0,0,15,0,0,15,0,0,7,0,0,
7,0,0,7,0,0,3,0,0,1,0,0,1,24,51,153,
24,0,205,0,31,0,0,63,192,0,127,224,0,127,224,0,
63,224,0,3,224,0,1,240,0,0,248,0,0,124,0,0,
60,0,0,60,0,0,124,0,7,252,0,7,252,0,0,255,
0,0,255,0,0,255,0,0,255,0,1,255,0,7,255,0,
31,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
255,255,224,127,254,0,63,224,0,6,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,1,0,0,3,0,0,7,0,0,7,0,0,
7,0,0,15,0,0,14,0,0,30,0,0,16,0,0,16,
0,0,16,0,0,16,0,0,48,0,0,32,24,11,33,24,
0,209,0,0,1,0,0,2,0,0,4,240,0,0,240,0,
0,240,0,8,240,0,0,248,0,16,240,0,0,224,0,0,
192,0,0,23,47,141,24,0,195,4,0,0,4,0,0,6,
0,0,2,0,0,2,0,0,2,0,0,6,0,0,4,0,
0,4,0,0,28,0,0,24,0,0,24,0,0,0,0,0,
224,0,0,224,0,0,224,0,0,224,0,0,224,0,0,112,
0,0,112,0,0,56,0,0,57,252,0,31,255,128,31,255,
192,31,255,224,62,7,240,127,1,248,243,0,252,227,128,124,
193,128,60,193,192,62,128,224,30,128,240,30,128,112,30,128,
96,30,128,0,30,128,0,30,192,0,60,192,0,60,224,0,
124,240,0,248,248,1,240,254,7,240,255,255,224,63,255,128,
31,255,0,3,248,0,22,27,81,24,0,215,248,0,0,248,
0,0,248,0,0,252,0,0,252,0,0,252,0,0,248,0,
0,248,0,0,248,0,0,224,0,0,224,0,0,224,0,0,
192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,15,254,0,15,255,0,7,255,128,70,3,192,224,0,
96,224,0,48,224,0,24,192,0,12,128,0,4,19,43,129,
24,0,199,3,0,0,3,0,0,1,128,0,1,128,0,1,
128,0,1,128,0,1,128,0,3,0,0,3,0,0,3,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,
0,0,128,0,0,0,0,0,0,0,0,0,0,0,1,248,
0,0,254,0,12,255,0,28,31,128,62,127,192,62,61,192,
127,28,224,127,14,224,127,142,224,123,159,224,123,255,224,121,
255,224,61,249,192,63,227,192,31,207,128,15,255,0,7,254,
0,1,248,0};