summaryrefslogtreecommitdiff
path: root/color.h
diff options
context:
space:
mode:
authorOmar Magdy <omar.professional8777@gmail.com>2022-08-21 18:42:49 +0200
committerOmar Magdy <omar.professional8777@gmail.com>2022-08-21 18:42:49 +0200
commit063ac23917f608202b337b09fe355d9223493245 (patch)
tree8d45778269529e4d2a0bcbca8cc128c9a15cc0bd /color.h
parentff6ccb57551afe8904254313fb7ed0204fe74d19 (diff)
downloadTraffic-light-063ac23917f608202b337b09fe355d9223493245.tar.xz
Traffic-light-063ac23917f608202b337b09fe355d9223493245.zip
Added intital project
Diffstat (limited to 'color.h')
-rw-r--r--color.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/color.h b/color.h
new file mode 100644
index 0000000..77fe82a
--- /dev/null
+++ b/color.h
@@ -0,0 +1,21 @@
+#include "tivaware.h"
+
+
+#define PORTF GPIO_PORTF_DATA_R
+#define INTIAL_COLOR WHITE
+#define RED 1
+#define BLUE 2
+#define GREEN 3
+#define MAGENTA 4
+#define CYAN 5
+#define YELLOW 6
+#define WHITE 7
+
+
+void set_color(uint8_t color);
+
+void toggle_color(uint8_t color);
+
+void reset_color();
+
+