summaryrefslogtreecommitdiff
path: root/color.c
diff options
context:
space:
mode:
authorOmar Magdy <omar.professional8777@gmail.com>2022-08-23 15:17:50 +0200
committerOmar Magdy <omar.professional8777@gmail.com>2022-08-23 15:17:50 +0200
commite304ce76cb2e66b3009cee4386d9de098e09ce94 (patch)
tree73fd498f47eb4c1a47554b4e6168114c1859ba27 /color.c
parent33756429cda89ed7ed2fd97b4ae0ca87e3bf36f1 (diff)
downloadTraffic-light-e304ce76cb2e66b3009cee4386d9de098e09ce94.tar.xz
Traffic-light-e304ce76cb2e66b3009cee4386d9de098e09ce94.zip
Added a Traffic struct and made the code more generic and easy to
maintain
Diffstat (limited to 'color.c')
-rw-r--r--color.c4
1 files changed, 1 insertions, 3 deletions
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 <stdint.h>
-
+#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;