Displaying a graphic on the Gameduino…

June 9, 2011 | Arduino, Gameduino | By: Mark VandeWettering

Okay, so yesterday I did some sprite animation and learned a bit about how color maps work on the Gameduino. I didn’t have a lot of time to tinker with the Gameduino tonight, but I did want to test my understanding of sprites, so I made a simple little program to display my brainwagon logo (blue Mark and his wagon o’ brains) on the left using the Arduino.

There are a few things that you have to understand.

First, there is memory for 64 sprite images, each one being 16×16 pixels. But that’s if you use 8 bit colormaps. If you choose to just use 4 bit maps, you can get twice as many. I rescaled my logo to be 96×128 pixels (a convenient multiple of 16) and used the netpbm utilities to convert it down to just 16 colors. Normally, that would be 6*8 = 48 sprite images, but since we are just using 16 colors, we end up with using 24 sprites. I wrote a shell script and a small C program to use the netpbm to dump the raw bits, and then used John’s python “compress” function to compress the array into an array that can be stored in flash memory. The net result is the following display, followed by the code used to display it.

#include
#include
#include

static PROGMEM prog_uchar data[] = {

0xc1, 0x21, 0x20, 0x8a, 0x10, 0x61, 0x22, 0xc0, 0xcc, 0x04, 0x44, 0x20,
0x84, 0x7d, 0x18, 0x86,
0x63, 0x04, 0x9a, 0x0a, 0xe4, 0x08, 0x35, 0x93, 0x0e, 0xa2, 0x4c, 0x05,
0x90, 0x61, 0xc1, 0x86,
0x73, 0x18, 0x87, 0x08, 0xc1, 0xa1, 0x11, 0x11, 0xa2, 0xc2, 0x33, 0x80,
0x71, 0xe0, 0xc0, 0x85,
0x39, 0x00, 0x70, 0x05, 0xa0, 0x28, 0x51, 0x82, 0x03, 0x10, 0x0f, 0x8e,
0x70, 0x8d, 0xc0, 0xf0,
0xc6, 0x13, 0x4f, 0x01, 0x1d, 0x03, 0x82, 0x03, 0x22, 0xbc, 0x13, 0x38,
0xb8, 0x52, 0x23, 0xbd,
0x33, 0x34, 0xbc, 0xe3, 0x3f, 0x53, 0xd4, 0xa4, 0x77, 0x46, 0x25, 0x51,
0xfc, 0x45, 0xc8, 0x40,
0x62, 0xc6, 0x11, 0xff, 0xe1, 0xd0, 0x1e, 0xf1, 0xdf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0x91, 0xc5,
0xa7, 0x19, 0x31, 0x62,
0x04, 0x07, 0x90, 0xe2, 0x00, 0x08, 0x2e, 0x35, 0xe1, 0xa0, 0x26, 0x0c,
0x01, 0x23, 0xd6, 0x1c,
0x00, 0x88, 0x15, 0x8b, 0x11, 0xa1, 0x22, 0x1c, 0xf4, 0x68, 0xa6, 0xec,
0x98, 0x32, 0x65, 0xc8,
0x01, 0x08, 0x03, 0x86, 0x0c, 0x15, 0x70, 0xdc, 0xd0, 0x81, 0x1c, 0x1b,
0x9c, 0xe3, 0x51, 0x07,
0x0f, 0x10, 0x3c, 0x68, 0xe9, 0x86, 0xa3, 0x47, 0x47, 0x2a, 0x86, 0x53,
0x00, 0xe8, 0xe4, 0x08,
0x0e, 0x2a, 0x0f, 0x30, 0x88, 0xe3, 0x20, 0x1e, 0xc3, 0x41, 0x97, 0x46,
0x7d, 0x1a, 0x75, 0x83,
0xe6, 0xa3, 0x87, 0x33, 0xe0, 0x00, 0xe4, 0xc1, 0x83, 0x17, 0x47, 0x7e,
0xbc, 0x79, 0x73, 0xd2,
0xa0, 0x46, 0x45, 0x3b, 0x89, 0x10, 0xa1, 0x0a, 0x34, 0x38, 0x8e, 0x9c,
0x38, 0x70, 0xd0, 0xd5,
0x08, 0x22, 0xc2, 0x51, 0x54, 0x00, 0x00, 0x05, 0x0a, 0x80, 0x57, 0x00,
0xe8, 0x50, 0x11, 0x1e,
0x8a, 0x55, 0x04, 0x80, 0x2a, 0xd5, 0xe0, 0x14, 0xa8, 0x02, 0x05, 0x8a,
0x97, 0x2e, 0x3d, 0x7a,
0x50, 0x24, 0x44, 0x3c, 0x0a, 0x55, 0x0d, 0x2a, 0x3c, 0x0b, 0x02, 0x06,
0x0f, 0x18, 0x3a, 0x22,
0x50, 0xa0, 0x50, 0x55, 0xf1, 0xa0, 0x4a, 0x21, 0x00, 0xe0, 0x7c, 0x86,
0x82, 0x86, 0x2a, 0x51,
0x82, 0xc4, 0x09, 0x0a, 0x8f, 0x70, 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6b, 0x8d, 0xb5, 0x75, 0x86, 0x56, 0x99, 0x31, 0x4d, 0xe5, 0xe8,
0x62, 0xc6, 0xda, 0x76,
0x67, 0x54, 0x47, 0x1a, 0x24, 0x66, 0x18, 0xf0, 0xe5, 0xc6, 0x2d, 0x1c,
0x18, 0xa4, 0x66, 0x41,
0xa4, 0x51, 0x71, 0xc5, 0x87, 0x05, 0xab, 0xa9, 0xb5, 0x1a, 0x4c, 0x99,
0x65, 0x07, 0x53, 0xb6,
0xb4, 0x59, 0x33, 0x68, 0x88, 0x90, 0xe2, 0xcd, 0x2a, 0x00, 0x42, 0x01,
0x2a, 0x74, 0xd7, 0x14,
0x68, 0xbb, 0xa3, 0xe8, 0x94, 0x36, 0x05, 0x0a, 0xb4, 0x02, 0x22, 0x12,
0x6c, 0x29, 0x47, 0x46,
0xdd, 0xc1, 0x24, 0xd8, 0x02, 0x05, 0x00, 0x00, 0x07, 0x0b, 0x0c, 0x38,
0x84, 0x87, 0x46, 0xde,
0xba, 0xa1, 0x43, 0xd0, 0x06, 0x01, 0xa2, 0x36, 0x6d, 0xc0, 0x21, 0xea,
0x55, 0x2b, 0x54, 0x34,
0x72, 0x00, 0x0a, 0x80, 0x73, 0xe0, 0xc6, 0x41, 0x63, 0x78, 0xe9, 0x56,
0x1d, 0x1e, 0xc8, 0x94,

0x01, 0xfb, 0x85, 0xdf, 0xe0, 0x07, 0x4e, 0x1f, 0x30, 0xa8, 0x5a, 0x15,
0x0a, 0x15, 0xa4, 0x2f,
0x29, 0xe0, 0xea, 0x05, 0xab, 0x17, 0xb8, 0x56, 0x8d, 0xe1, 0xa9, 0x48,
0x9c, 0x00, 0xbd, 0xd0,
0x99, 0x43, 0x8b, 0x00, 0xe8, 0xda, 0xa1, 0x42, 0x53, 0x08, 0x95, 0xab,
0x02, 0x71, 0xa2, 0xf4,
0x72, 0x03, 0xc6, 0x0d, 0x2c, 0x30, 0x6d, 0xc8, 0xb5, 0x86, 0x27, 0xd2,
0xf0, 0x02,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x0b, 0x96, 0x18, 0x59, 0xb7, 0x64, 0xc9, 0xba, 0x05,
0x06, 0xbc, 0xbe, 0x40,
0xb5, 0x02, 0x8d, 0x4e, 0x43, 0x83, 0x37, 0x6b, 0xee, 0xbc, 0xb9, 0x03,
0x02, 0xc0, 0x01, 0x39,
0xb0, 0xf0, 0x50, 0xad, 0xd5, 0x39, 0xed, 0x00, 0x38, 0x8d, 0x80, 0x70,
0x4e, 0x5d, 0x83, 0x6e,
0xd0, 0x0a, 0x14, 0x28, 0xd5, 0xed, 0xda, 0x76, 0x80, 0x6a, 0x0c, 0x00,
0x84, 0xa0, 0x95, 0x2a,
0x8c, 0x30, 0xd6, 0xfa, 0xe8, 0x69, 0x45, 0x08, 0x14, 0xa0, 0x42, 0xa5,
0x10, 0x69, 0x87, 0x06,

0xeb, 0xc8, 0x84, 0x0a, 0x54, 0xa9, 0x52, 0x70, 0xe0, 0x54, 0x2b, 0x55,
0x97, 0x1f, 0x09, 0x65,
0x55, 0x65, 0x6a, 0xa8, 0x57, 0x18, 0x01, 0xea, 0xd4, 0x01, 0xac, 0x08,
0xdb, 0x0c, 0xad, 0xda,
0x56, 0xa9, 0x52, 0x75, 0x7a, 0x24, 0x00, 0xc0, 0x68, 0x40, 0x58, 0x08,
0x56, 0x2d, 0xda, 0x0a,
0x0f, 0x90, 0xe8, 0x01, 0x82, 0x43, 0x0a, 0x12, 0x64, 0x65, 0x3a, 0x64,
0xc7, 0x80, 0x55, 0x78,
0xa2, 0x0c, 0x0f, 0x84, 0xe0, 0xc3, 0x53, 0x35, 0x55, 0xaa, 0x16, 0xe2,
0x0b, 0x65, 0x7a, 0xa0,
0x06, 0x0a, 0x5e, 0xb5, 0x42, 0x85, 0x5c, 0x5d, 0xc7, 0x0f, 0x7a, 0xa4,
0xba, 0xd1, 0x83, 0xaf,
0x41, 0x70, 0xd0, 0x5d, 0xe5, 0x97, 0x4e, 0x94, 0xe8, 0xc2, 0x13, 0x88,
0xba, 0xce, 0x40, 0xe0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c4,
0x75, 0x87, 0x93, 0x53, 0x77, 0xf2, 0xe0, 0xc5, 0x17, 0x69, 0xe2, 0xe1,
0xe9, 0xce, 0x41, 0x20,
0x84, 0x87, 0xbe, 0xf4, 0xe4, 0x5d, 0x15, 0xa4, 0x35, 0xba, 0x73, 0x54,
0x9a, 0xe1, 0x05, 0x4f,
0x35, 0x14, 0x52, 0x04, 0x70, 0x6b, 0xac, 0xa5, 0xf8, 0x94, 0xe7, 0x94,
0x36, 0x10, 0x2d, 0x38,
0x70, 0xe0, 0x92, 0xe5, 0x28, 0x9c, 0xc2, 0x43, 0xa9, 0x4b, 0x27, 0x50,
0x14, 0x87, 0x27, 0x81,
0x70, 0x76, 0x27, 0x51, 0x25, 0x14, 0x27, 0x90, 0x15, 0x63, 0xce, 0x00,
0xa2, 0xe1, 0xed, 0x10,

0x89, 0x12, 0x2d, 0x8e, 0x35, 0x87, 0x07, 0xe9, 0x6f, 0xe8, 0xc1, 0x70,
0x70, 0xa2, 0x45, 0x89,
0xe6, 0xf0, 0xed, 0x01, 0x77, 0xee, 0x9d, 0xc4, 0x26, 0x60, 0xc7, 0x90,
0x05, 0xc7, 0x07, 0x51,
0x7c, 0x23, 0x10, 0x17, 0x8e, 0xe3, 0x83, 0x88, 0x62, 0xca, 0x8e, 0x15,
0x63, 0xc1, 0x82, 0xf5,
0x08, 0xdc, 0xb9, 0x76, 0x12, 0x1f, 0x50, 0x24, 0x2b, 0xce, 0xc0, 0xf0,
0xc0, 0x18, 0x9e, 0x4e,
0xd3, 0x21, 0x00, 0xa1, 0x68, 0xa6, 0x4c, 0x39, 0x3e, 0x70, 0x2b, 0x0d,
0xcf, 0x5e, 0x08, 0x00,
0x57, 0x4e, 0x5c, 0x46, 0x85, 0x3a, 0xdd, 0x8c, 0x98, 0xea, 0x63, 0x00,
0x0b, 0x94, 0x42, 0xa5,
0xca, 0xd8, 0xc1, 0x52, 0x25, 0x4a, 0xd4, 0x47, 0x50, 0xa4, 0x47, 0x8f,
0xb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0x0a, 0xc2, 0x1b, 0x94, 0x46, 0xaa,
0x6c, 0xd7, 0x43, 0x98,
0x56, 0x85, 0x0a, 0x55, 0xe9, 0x62, 0xc5, 0x59, 0xb1, 0x12, 0x25, 0xb0,
0xe9, 0xf1, 0x15, 0x26,
0x4e, 0x18, 0x09, 0xc2, 0x44, 0x02, 0x18, 0x0b, 0x11, 0x9c, 0x24, 0x43,
0x2a, 0xbc, 0x95, 0x10,
0x91, 0xa2, 0x25, 0x00, 0xa0, 0x50, 0x09, 0xc0, 0xf8, 0x08, 0xc1, 0x00,
0x64, 0xa2, 0x05, 0x49,
0x00, 0x0c, 0x03, 0x10, 0x18, 0x94, 0xa1, 0x84, 0x6c, 0x78, 0xa2, 0x84,
0x4d, 0x1b, 0x15, 0xe0,
0x50, 0x0c, 0x44, 0x90, 0xa0, 0x51, 0x23, 0xa4, 0x4a, 0x91, 0x21, 0x6a,
0x54, 0xa0, 0x40, 0x02,
0x04, 0x1d, 0x06, 0x00, 0x01, 0xa2, 0x86, 0x44, 0x89, 0x11, 0x02, 0xd4,
0xb0, 0xc3, 0x23, 0x14,
0x00, 0x22, 0x44, 0x8d, 0x08, 0x12, 0x05, 0x06, 0x08, 0x10, 0x30, 0x70,
0xe8, 0x4c, 0x17, 0x80,
0xd0, 0xd0, 0xad, 0x31, 0x1c, 0x35, 0x30, 0x80, 0x44, 0xcd, 0x91, 0x43,
0x87, 0xb4, 0x20, 0x50,
0x82, 0x04, 0x1b, 0x22, 0x24, 0x8a, 0x94, 0xa8, 0x41, 0x84, 0x07, 0x0f,
0x6a, 0x00, 0x84, 0x45,
0x00, 0x84, 0x43, 0x60, 0x06, 0x40, 0x58, 0x40, 0x0b, 0x0a, 0x4a, 0x9a,
0x10, 0x21, 0x82, 0xa6,
0x49, 0x23, 0x42, 0xad, 0xa1, 0x01, 0x55, 0xa3, 0x6e, 0x46, 0x61, 0x01,
0x28, 0x00, 0x80, 0x01,
0x02, 0x0d, 0x00, 0x10, 0x82, 0x90, 0x00, 0x10, 0x80, 0x66, 0x02, 0x4c,
0x8d, 0x2a, 0x55, 0x6a,
0x02, 0x40, 0x55, 0xf8, 0xc7, 0x80, 0x18, 0x31, 0x6a, 0x02, 0x21, 0xfe,
0x23, 0x28, 0xcd, 0xb3,

0xde, 0x0c, 0xed, 0x00, 0xa0, 0x48, 0x8f, 0x9e, 0x3b, 0xd7, 0x01, 0xe0,
0x68, 0x2c, 0x9c, 0x06,
0xc4, 0x5a, 0x80, 0x06, 0x0d, 0x0e, 0x1c, 0xbc, 0x08, 0x8a, 0x24, 0x47,
0x80, 0x00, 0x02, 0x05,
0x1a, 0x1e, 0xe0, 0xf4, 0xd1, 0x76, 0xe4, 0x20, 0x80, 0x01, 0x76, 0x45,
0x7c, 0x26, 0x04, 0x42,
0x44, 0x10, 0x28, 0x44, 0x54, 0x7c, 0x84, 0x55, 0x60, 0x8e, 0x25, 0x02,
0x0d, 0x10, 0x1c, 0x84,
0x0d, 0xba, 0x28, 0x00, 0xba, 0x02, 0x00, 0xc2, 0x43, 0x43, 0xb8, 0x04,
0x10, 0x32, 0x4d, 0x9f,
0x11, 0x1f, 0xa1, 0xa4, 0x2f, 0x00, 0x82, 0xf0, 0x15, 0xd2, 0xa2, 0x33,
0x10, 0x6a, 0xd4, 0xaa,
0x31, 0x00, 0xb4, 0x6a, 0xd5, 0x37, 0x04, 0x0e, 0x1d, 0x0d, 0xe5, 0x77,
0x42, 0xd4, 0x08, 0x11,
0xa1, 0x6e, 0x8a, 0x0e, 0x03, 0x88, 0x22, 0x44, 0x44, 0xa8, 0x51, 0x4f,
0x12, 0x20, 0x4d, 0x90,
0x74, 0xeb, 0x46, 0xf4, 0x29, 0x81, 0x1f, 0x46, 0xaa, 0x4c, 0x7d, 0x47,
0x80, 0x80, 0x0a, 0x00,
0x30, 0x01, 0x61, 0x22, 0x40, 0x45, 0xfc, 0x45, 0x40, 0xaa, 0x51, 0xf3,
0xff, 0x7f, 0x11, 0xc1,
0xe1, 0x1f, 0xa3, 0xfc, 0xd4, 0xa9, 0x53, 0xc8, 0x9b, 0x35, 0xaf, 0x22,
0xd0, 0xa2, 0x85, 0x2a,
0x58, 0x65, 0x42, 0x85, 0x86, 0x43, 0x40, 0xf0, 0x63, 0xc7, 0x4f, 0xa1,
0x02, 0x5d, 0xb4, 0x78,
0xeb, 0x13, 0xab, 0x56, 0x28, 0xb8, 0x08, 0x04, 0xc7, 0x4e, 0x9f, 0xba,
0xa5, 0xa0, 0xa8, 0x51,
0x9f, 0x5a, 0x65, 0xea, 0xe0, 0x85, 0x0f, 0x20, 0x0d, 0x14, 0x34, 0x51,
0xd2, 0xa8, 0x4e, 0xac,
0x40, 0xa7, 0x05, 0x18, 0x1f, 0x8c, 0x34, 0x84, 0x07, 0x07, 0x07, 0x8a,
0xf2, 0x41, 0xac, 0x3d,
0x7a, 0xb7, 0xa1, 0x8f, 0x51, 0x18, 0x50, 0x4a, 0x00, 0x0d, 0x8a, 0x54,
0x27, 0x00, 0x3b, 0x7b,

0xee, 0xe0, 0x81, 0xa6, 0x64, 0x9b, 0x12, 0x24, 0x48, 0x0e, 0x14, 0x28,
0x10, 0x24, 0x50, 0x28,
0x3c, 0x76, 0xec, 0x28, 0x5e, 0x05, 0x6d, 0x86, 0xba, 0x5d, 0x6b, 0x12,
0xa4, 0x48, 0x90, 0x20,
0xa1, 0xf4, 0xa8, 0x32, 0x64, 0xc8, 0x31, 0x00, 0x1d, 0xea, 0x56, 0xad,
0x5a, 0x74, 0x00, 0x6a,
0x84, 0x4d, 0x9b, 0x22, 0xed, 0xc0, 0x70, 0x0d, 0x1b, 0xb5, 0xa2, 0x00,
0x88, 0x0f, 0x41, 0x1a,
0x10, 0x20, 0xd0, 0x90, 0x1b, 0x10, 0x20, 0x69, 0xd2, 0xf4, 0x17, 0xe1,
0xf5, 0xff, 0x21, 0x50,
0x1e, 0x02, 0x02, 0xa0, 0x0a, 0x02, 0x02, 0x00, 0x02, 0x54, 0xa8, 0xfe,
0xe2, 0x10, 0x54, 0x89,
0x0a, 0x00, 0x53, 0x26, 0x4c, 0x99, 0x42, 0xa1, 0x23, 0x00, 0x68, 0xe8,
0x51, 0x83, 0x46, 0x0f,
0x9f, 0xcf, 0x30, 0x11, 0x1e, 0x26, 0x74, 0xa8, 0x08, 0x03, 0x3d, 0x70,
0xf4, 0x44, 0xc4, 0x3f,
0x88, 0xf9, 0x2f, 0x35, 0xb1, 0x60, 0x06, 0x8c, 0x1a, 0x33, 0xf1, 0xa9,
0xc6, 0x0c,
};

void
setup()
{
delay(250) ;

GD.begin() ;

GD.ascii() ;

// setup the color map
GD.wr16 (PALETTE16A + 0, RGB (234, 215, 180));
GD.wr16 (PALETTE16A + 2, RGB (90, 105, 78));
GD.wr16 (PALETTE16A + 4, RGB (177, 214, 153));
GD.wr16 (PALETTE16A + 6, RGB (225, 233, 240));
GD.wr16 (PALETTE16A + 8, RGB (186, 209, 238));
GD.wr16 (PALETTE16A + 10, RGB (95, 69, 43));
GD.wr16 (PALETTE16A + 12, RGB (192, 134, 82));
GD.wr16 (PALETTE16A + 14, RGB (213, 141, 154));
GD.wr16 (PALETTE16A + 16, RGB (234, 234, 237));
GD.wr16 (PALETTE16A + 18, RGB (162, 201, 215));
GD.wr16 (PALETTE16A + 20, RGB (229, 234, 224));
GD.wr16 (PALETTE16A + 22, RGB (158, 139, 154));
GD.wr16 (PALETTE16A + 24, RGB (238, 246, 242));
GD.wr16 (BG_COLOR, RGB (238, 246, 242));
GD.wr16 (PALETTE16A + 26, RGB (190, 47, 49));
GD.wr16 (PALETTE16A + 28, RGB (91, 19, 27));
GD.wr16 (PALETTE16A + 30, RGB (87, 119, 158));

GD.uncompress(RAM_SPRIMG, data) ;
int i ;

for (i = 0x20; i < 0x80; i++) {
GD.setpal(4 * i + 0, TRANSPARENT);
GD.setpal(4 * i + 3, RGB(51,102,153));
}

int x, y, s ;

for (y=0, s=0; y<128; y+=16) {
for (x=0; x<96; x+=32, s++) {
GD.sprite(2*s, x+32, y+32, s, 4, 0, 0) ;
GD.sprite(2*s+1, x+48, y+32, s, 6, 0, 0) ;
}
}

GD.putstr(25, 12, "Brainwagon Demo") ;
}

void
loop()
{
for (;;) ;
}

Share Button
Be Sociable, Share!

Comments

Comment from Adrian
Time 6/14/2011 at 2:13 pm

Hello!

My gameduino just arrived yesterday. I’ve started looking for resources online and I found your site. I read that you are using “John’s python compress function”. Would you mind showing how you did that and from where did you get that function? I’ve been looking for that but I’m only reaching dead ends. Thanks!

Comment from Mark VandeWettering
Time 6/14/2011 at 2:46 pm

I found the “compress.py” file on http://excamera.com/files/gameduino/python/gameduino/

Write a comment