From e304ce76cb2e66b3009cee4386d9de098e09ce94 Mon Sep 17 00:00:00 2001 From: Omar Magdy Date: Tue, 23 Aug 2022 15:17:50 +0200 Subject: Added a Traffic struct and made the code more generic and easy to maintain --- color.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'color.c') diff --git a/color.c b/color.c index e7e072d..297bd02 100644 --- a/color.c +++ b/color.c @@ -1,6 +1,4 @@ -#include "color.h" -#include - +#include "trafficlight.h" void set_color(uint8_t color) { uint32_t pins = GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4 | GPIO_PIN_5 | GPIO_PIN_6; -- cgit v1.2.3