From f7d0b5610ce7a5c40b905161d1a72dc6107d35fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Wed, 20 Jan 2016 22:29:56 +0100 Subject: [PATCH] add bunny pictures --- main.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 5f0f63a..162fa22 100644 --- a/main.c +++ b/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();