2018-12-11 21:26:09 +01:00
|
|
|
// the default Colormap
|
|
|
|
uint8_t colorMap[] = { 0x00, 0x00, 0x00,
|
|
|
|
0x19, 0x10, 0x28,
|
|
|
|
0x46, 0xaf, 0x45,
|
|
|
|
0xa1, 0xd6, 0x85,
|
|
|
|
0x45, 0x3e, 0x78,
|
|
|
|
0x76, 0x64, 0xfe,
|
2018-12-16 22:04:41 +01:00
|
|
|
0x43, 0x10, 0x10,
|
2018-12-11 21:26:09 +01:00
|
|
|
0x9e, 0xc2, 0xe8,
|
2018-12-16 22:04:41 +01:00
|
|
|
0xff, 0x43, 0x4b,
|
2018-12-11 21:26:09 +01:00
|
|
|
0xe1, 0x8d, 0x79,
|
|
|
|
0xd6, 0xb9, 0x7b,
|
|
|
|
0xe9, 0xd8, 0xa1,
|
|
|
|
0x21, 0x6c, 0x4b,
|
|
|
|
0xd3, 0x65, 0xc8,
|
|
|
|
0xaf, 0xaa, 0xb9,
|
|
|
|
0xf5, 0xf4, 0xeb };
|
|
|
|
|
2018-12-16 22:04:41 +01:00
|
|
|
uint8_t terminator[][32] = { {
|
|
|
|
0x00, 0x66, 0x66, 0x00,
|
|
|
|
0x06, 0x00, 0x00, 0x60,
|
|
|
|
0x60, 0x06, 0x60, 0x06,
|
|
|
|
0x60, 0x68, 0x86, 0x06,
|
|
|
|
0x60, 0x68, 0x86, 0x06,
|
|
|
|
0x60, 0x06, 0x60, 0x06,
|
|
|
|
0x06, 0x00, 0x00, 0x60,
|
|
|
|
0x00, 0x66, 0x66, 0x00
|
|
|
|
},
|
|
|
|
{
|
|
|
|
0x00, 0x66, 0x66, 0x00,
|
|
|
|
0x06, 0x00, 0x00, 0x60,
|
|
|
|
0x60, 0x66, 0x00, 0x06,
|
|
|
|
0x66, 0x88, 0x60, 0x06,
|
|
|
|
0x66, 0x88, 0x60, 0x06,
|
|
|
|
0x60, 0x66, 0x00, 0x06,
|
|
|
|
0x06, 0x00, 0x00, 0x60,
|
|
|
|
0x00, 0x66, 0x66, 0x00
|
|
|
|
},
|
|
|
|
{
|
|
|
|
0x00, 0x66, 0x66, 0x00,
|
|
|
|
0x06, 0x00, 0x00, 0x60,
|
|
|
|
0x66, 0x60, 0x00, 0x06,
|
|
|
|
0x68, 0x86, 0x00, 0x06,
|
|
|
|
0x68, 0x86, 0x00, 0x06,
|
|
|
|
0x66, 0x60, 0x00, 0x06,
|
|
|
|
0x06, 0x00, 0x00, 0x60,
|
|
|
|
0x00, 0x66, 0x66, 0x00
|
|
|
|
},
|
|
|
|
{
|
|
|
|
0x00, 0x66, 0x66, 0x00,
|
|
|
|
0x06, 0x00, 0x00, 0x60,
|
|
|
|
0x60, 0x66, 0x00, 0x06,
|
|
|
|
0x66, 0x88, 0x60, 0x06,
|
|
|
|
0x66, 0x88, 0x60, 0x06,
|
|
|
|
0x60, 0x66, 0x00, 0x06,
|
|
|
|
0x06, 0x00, 0x00, 0x60,
|
|
|
|
0x00, 0x66, 0x66, 0x00
|
|
|
|
},
|
|
|
|
{
|
|
|
|
0x00, 0x66, 0x66, 0x00,
|
|
|
|
0x06, 0x00, 0x00, 0x60,
|
|
|
|
0x60, 0x06, 0x60, 0x06,
|
|
|
|
0x60, 0x68, 0x86, 0x06,
|
|
|
|
0x60, 0x68, 0x86, 0x06,
|
|
|
|
0x60, 0x06, 0x60, 0x06,
|
|
|
|
0x06, 0x00, 0x00, 0x60,
|
|
|
|
0x00, 0x66, 0x66, 0x00
|
|
|
|
},
|
|
|
|
{
|
|
|
|
0x00, 0x66, 0x66, 0x00,
|
|
|
|
0x06, 0x00, 0x00, 0x60,
|
|
|
|
0x60, 0x00, 0x66, 0x06,
|
|
|
|
0x60, 0x06, 0x88, 0x66,
|
|
|
|
0x60, 0x06, 0x88, 0x66,
|
|
|
|
0x60, 0x00, 0x66, 0x06,
|
|
|
|
0x06, 0x00, 0x00, 0x60,
|
|
|
|
0x00, 0x66, 0x66, 0x00
|
|
|
|
},
|
|
|
|
{
|
|
|
|
0x00, 0x66, 0x66, 0x00,
|
|
|
|
0x06, 0x00, 0x00, 0x60,
|
|
|
|
0x60, 0x00, 0x06, 0x66,
|
|
|
|
0x60, 0x00, 0x68, 0x86,
|
|
|
|
0x60, 0x00, 0x68, 0x86,
|
|
|
|
0x60, 0x00, 0x06, 0x66,
|
|
|
|
0x06, 0x00, 0x00, 0x60,
|
|
|
|
0x00, 0x66, 0x66, 0x00
|
|
|
|
},
|
|
|
|
{
|
|
|
|
0x00, 0x66, 0x66, 0x00,
|
|
|
|
0x06, 0x00, 0x00, 0x60,
|
|
|
|
0x60, 0x00, 0x66, 0x06,
|
|
|
|
0x60, 0x06, 0x88, 0x66,
|
|
|
|
0x60, 0x06, 0x88, 0x66,
|
|
|
|
0x60, 0x00, 0x66, 0x06,
|
|
|
|
0x06, 0x00, 0x00, 0x60,
|
|
|
|
0x00, 0x66, 0x66, 0x00
|
|
|
|
},
|
|
|
|
{
|
|
|
|
0x00, 0x66, 0x66, 0x00,
|
|
|
|
0x06, 0x00, 0x00, 0x60,
|
|
|
|
0x60, 0x06, 0x60, 0x06,
|
|
|
|
0x60, 0x68, 0x86, 0x06,
|
|
|
|
0x60, 0x68, 0x86, 0x06,
|
|
|
|
0x60, 0x06, 0x60, 0x06,
|
|
|
|
0x06, 0x00, 0x00, 0x60,
|
|
|
|
0x00, 0x66, 0x66, 0x00
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2018-12-28 17:55:01 +01:00
|
|
|
uint8_t brightness = 50;
|
2018-12-16 21:44:26 +01:00
|
|
|
|
|
|
|
uint8_t eye_blink_c[][8] = {
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11100111,
|
|
|
|
B11101111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00000000,
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11100111,
|
|
|
|
B11101111,
|
|
|
|
B01111110,
|
|
|
|
B00111100,
|
|
|
|
B00000000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B01111110,
|
|
|
|
B11100111,
|
|
|
|
B01111110,
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B00000000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B11111111,
|
|
|
|
B11111111,
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B00000000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B01111110,
|
|
|
|
B11100111,
|
|
|
|
B01111110,
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B00000000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00000000,
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11100111,
|
|
|
|
B11101111,
|
|
|
|
B01111110,
|
|
|
|
B00111100,
|
|
|
|
B00000000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11100111,
|
|
|
|
B11101111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
uint8_t eye_blink_l[][8] = {
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B10011111,
|
|
|
|
B10111111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00000000,
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B10011111,
|
|
|
|
B10111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100,
|
|
|
|
B00000000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B01111110,
|
|
|
|
B10011111,
|
|
|
|
B01111110,
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B00000000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B11111111,
|
|
|
|
B11111111,
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B00000000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B01111110,
|
|
|
|
B10011111,
|
|
|
|
B01111110,
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B00000000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00000000,
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B10011111,
|
|
|
|
B10111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100,
|
|
|
|
B00000000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B10011111,
|
|
|
|
B10111111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
uint8_t eye_blink_r[][8] = {
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11111001,
|
|
|
|
B11111011,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00000000,
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111001,
|
|
|
|
B11111011,
|
|
|
|
B01111110,
|
|
|
|
B00111100,
|
|
|
|
B00000000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B01111110,
|
|
|
|
B11111001,
|
|
|
|
B01111110,
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B00000000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B11111111,
|
|
|
|
B11111111,
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B00000000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B01111110,
|
|
|
|
B11111001,
|
|
|
|
B01111110,
|
|
|
|
B00000000,
|
|
|
|
B00000000,
|
|
|
|
B00000000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00000000,
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111001,
|
|
|
|
B11111011,
|
|
|
|
B01111110,
|
|
|
|
B00111100,
|
|
|
|
B00000000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11111001,
|
|
|
|
B11111011,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
uint8_t eye_move_cr[][8] = {
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11100111,
|
|
|
|
B11101111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11100111,
|
|
|
|
B11101111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11110011,
|
|
|
|
B11110111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11110011,
|
|
|
|
B11110111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11111001,
|
|
|
|
B11111011,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11111001,
|
|
|
|
B11111011,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11111001,
|
|
|
|
B11111011,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
uint8_t eye_move_rc[][8] = {
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11111001,
|
|
|
|
B11111011,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11111001,
|
|
|
|
B11111011,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11111001,
|
|
|
|
B11111011,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11110011,
|
|
|
|
B11110111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11110011,
|
|
|
|
B11110111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11100111,
|
|
|
|
B11101111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11100111,
|
|
|
|
B11101111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
uint8_t eye_move_cl[][8] = {
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11100111,
|
|
|
|
B11101111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11100111,
|
|
|
|
B11101111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11001111,
|
|
|
|
B11011111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11001111,
|
|
|
|
B11011111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B10011111,
|
|
|
|
B10111111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B10011111,
|
|
|
|
B10111111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B10011111,
|
|
|
|
B10111111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
uint8_t eye_move_lc[][8] = {
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B10011111,
|
|
|
|
B10111111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B10011111,
|
|
|
|
B10111111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B10011111,
|
|
|
|
B10111111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11001111,
|
|
|
|
B11011111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11001111,
|
|
|
|
B11011111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11100111,
|
|
|
|
B11101111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
B00111100,
|
|
|
|
B01111110,
|
|
|
|
B11111111,
|
|
|
|
B11100111,
|
|
|
|
B11101111,
|
|
|
|
B11111111,
|
|
|
|
B01111110,
|
|
|
|
B00111100
|
|
|
|
}
|
|
|
|
};
|