From 12a55275a55866d4f7d43ffb301f503284f63ad1 Mon Sep 17 00:00:00 2001 From: Derisis13 Date: Mon, 10 Apr 2023 17:57:58 +0200 Subject: [PATCH] chore: refactor to allmann --- main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 434a147..70d466c 100644 --- a/main.c +++ b/main.c @@ -48,7 +48,7 @@ int main() { }; static const uint8_t ha5kfu[] = {0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x48, 0x41, 0x35, 0x4B, 0x46, 0x55, 0x20, 0x20, 0x20}; - static const uint8_t blank[] = + static const uint8_t blank[] = {0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20}; static const uint8_t even_frame[] = {0x07, 0x05, 0x03, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00}; @@ -63,9 +63,11 @@ int main() { set_DCRAM(0, ha5kfu, DISPLAY_DIGITS); set_display_mode(NORMAL_MODE); _delay_ms(1000); - while (1) { + while (1) + { set_DCRAM(0, blank, DISPLAY_DIGITS); - for (int i = 0; i < DISPLAY_DIGITS; ++i) { + for (int i = 0; i < DISPLAY_DIGITS; ++i) + { if (i % 2 == 0) set_DCRAM(0, even_frame, i); else