From 063ac23917f608202b337b09fe355d9223493245 Mon Sep 17 00:00:00 2001 From: Omar Magdy Date: Sun, 21 Aug 2022 18:42:49 +0200 Subject: Added intital project --- color.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 color.h (limited to 'color.h') 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(); + + -- cgit v1.2.3