aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaël Gassmann <mael.gassmann@students.bfh.ch>2024-09-08 09:52:31 +0200
committerMaël Gassmann <mael.gassmann@students.bfh.ch>2024-09-08 10:05:00 +0200
commit6ebf9d86d095604b9357abc8da1a1a6673856fa8 (patch)
treea8dcae92cbd3826863fb80579d20f2dc9fdc662b
parent76d0db4dc32c5b77fa9622a408838ed5b85af68f (diff)
[~] Typo fix
-rw-r--r--components/screen/screen.c2
-rw-r--r--main/main.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/components/screen/screen.c b/components/screen/screen.c
index 8d29265..c6de3c7 100644
--- a/components/screen/screen.c
+++ b/components/screen/screen.c
@@ -78,7 +78,7 @@ void configure_screen(struct Screen* screen)
for (uint8_t i = 0; i <= 3; ++i)
{
uint8_t reg = REG_IODIRA;
- if (screen->nixies[i].reg != REG_GPIOA) reg = REG_GPIOB;
+ if (screen->nixies[i].reg != REG_GPIOA) reg = REG_IODIRB;
mcp_set_mode(screen->mcp, reg, screen->nixies[i].D, MCP_GPIO_OUTPUT);
mcp_set_mode(screen->mcp, reg, screen->nixies[i].C, MCP_GPIO_OUTPUT);
mcp_set_mode(screen->mcp, reg, screen->nixies[i].B, MCP_GPIO_OUTPUT);
diff --git a/main/main.c b/main/main.c
index 1899256..15d0f2e 100644
--- a/main/main.c
+++ b/main/main.c
@@ -7,5 +7,7 @@ void app_main(void)
printf("Starting up...\n");
configure_screen(&screen);
printf("Screen Configured!\n");
+ display(&screen, "1234");
+ sleep(10);
test_screen(&screen);
} \ No newline at end of file