summaryrefslogtreecommitdiff
path: root/color.h
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.h
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.h')
-rw-r--r--color.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/color.h b/color.h
index 9a43477..f39e986 100644
--- a/color.h
+++ b/color.h
@@ -1,5 +1,3 @@
-#include "tivaware.h"
-
#define LED_RED (1U << 1)
#define LED_BLUE (1U << 2)
@@ -14,12 +12,12 @@
#define YELLOW_TF3 8
#define GREEN_TF3 9
#define PORTF GPIO_PORTF_DATA_R
-// #define RED 1
+#define RED 1
+#define YELLOW 2
+#define GREEN 3
// #define BLUE 2
-// #define GREEN 3
// #define MAGENTA 4
// #define CYAN 5
-// #define YELLOW 6
// #define WHITE 7