add bunny pictures
This commit is contained in:
parent
7f71c9b828
commit
f7d0b5610c
16
main.c
16
main.c
@ -360,7 +360,19 @@ static const uint8_t ascii_font5x7[][5] = {
|
||||
*/
|
||||
static const uint8_t ascii_pict5x7[][5] = {
|
||||
{0x08, 0x08, 0x2A, 0x1C, 0x08}, // ->
|
||||
{0x08, 0x1C, 0x2A, 0x08, 0x08} // <-
|
||||
{0x08, 0x1C, 0x2A, 0x08, 0x08}, // <-
|
||||
{0b01110000, 0b01110000, 0b01111010, 0b01111100, 0b01011000}, // bunny side 1
|
||||
{0b00100000, 0b01110000, 0b01110010, 0b01111100, 0b01011000}, // bunny side 2
|
||||
{0b00111110, 0b01001001, 0b01010110, 0b01001001, 0b00111110}, // bunny face 1
|
||||
{0b00111110, 0b01010001, 0b01100110, 0b01010001, 0b00111110}, // bunny face 2
|
||||
{0b00111000, 0b01010111, 0b01100100, 0b01010111, 0b00111000}, // bunny face 3
|
||||
{0b00111000, 0b01001111, 0b01010100, 0b01001111, 0b00111000}, // bunny face 4
|
||||
{0b00111000, 0b01011110, 0b01101000, 0b01011110, 0b00111000}, // bunny face 5
|
||||
{0b01000001, 0b00110110, 0b00001000, 0b00110110, 0b01000001}, // cross 1
|
||||
{~0b01000001, ~0b00110110, ~0b00001000, ~0b00110110, ~0b01000001}, // cross 1 negated
|
||||
{0b00100010, 0b00010100, 0b00001000, 0b00010100, 0b00100010}, // cross 2
|
||||
{~0b00100010, ~0b00010100, ~0b00001000, ~0b00010100, ~0b00100010}, // cross 2 negated
|
||||
{0x00, 0x00, 0x00, 0x00, 0x00} // nothing
|
||||
};
|
||||
|
||||
static void vfd_matrix(uint8_t nb, char c)
|
||||
@ -419,7 +431,7 @@ int main(void)
|
||||
bool vfd_transmit = false;
|
||||
uint8_t digit = 0;
|
||||
uint8_t matrix = 0;
|
||||
char c = ' ';
|
||||
char c = 0x80;
|
||||
|
||||
vfd_digit(digit,'0');
|
||||
vfd_shift();
|
||||
|
Loading…
Reference in New Issue
Block a user