From 62f508b029c4cc6d0819eb5b3e06353c902be2be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gassmann?= Date: Sat, 28 Sep 2024 18:29:46 +0200 Subject: [+] Using screen as progress indicator when booting --- components/screen/screen.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'components') diff --git a/components/screen/screen.c b/components/screen/screen.c index 45f89f7..92f55de 100644 --- a/components/screen/screen.c +++ b/components/screen/screen.c @@ -50,25 +50,25 @@ void configure_screen(struct Screen* screen) printf("I2C MCP Configured!\n"); - screen->nixies[0].digit = 0; + screen->nixies[0].digit = 9; screen->nixies[0].reg = REG_GPIOA; screen->nixies[0].C = N0_P0; screen->nixies[0].B = N0_P1; screen->nixies[0].D = N0_P2; screen->nixies[0].A = N0_P3; - screen->nixies[1].digit = 0; + screen->nixies[1].digit = 9; screen->nixies[1].reg = REG_GPIOA; screen->nixies[1].C = N1_P0; screen->nixies[1].B = N1_P1; screen->nixies[1].D = N1_P2; screen->nixies[1].A = N1_P3; - screen->nixies[2].digit = 0; + screen->nixies[2].digit = 9; screen->nixies[2].reg = REG_GPIOB; screen->nixies[2].C = N2_P0; screen->nixies[2].B = N2_P1; screen->nixies[2].D = N2_P2; screen->nixies[2].A = N2_P3; - screen->nixies[3].digit = 0; + screen->nixies[3].digit = 9; screen->nixies[3].reg = REG_GPIOB; screen->nixies[3].C = N3_P0; screen->nixies[3].B = N3_P1; @@ -180,6 +180,7 @@ void display(struct Screen* screen, char digits[4]) { for (uint8_t i = 0; i < 4; ++i) { uint8_t digit = digits[i] - '0'; + printf("%i", digit); if (screen->nixies[i].digit != digit){ screen->nixies[i].digit = digit; set_digit(screen->mcp, &(screen->nixies[i])); // Call set_digit function -- cgit v1.2.3