diff options
| author | Omar Magdy <omar.professional8777@gmail.com> | 2022-08-22 14:03:01 +0200 |
|---|---|---|
| committer | Omar Magdy <omar.professional8777@gmail.com> | 2022-08-22 14:03:01 +0200 |
| commit | 5aa3477c59aec1ebedf2a70d8aebfed0d9d23a77 (patch) | |
| tree | e37092cb435d7d51927daeb095504acf4c866ad0 /color.h | |
| parent | fe2d03c9c7997d647ffb0b2856e766d54090e419 (diff) | |
| download | Traffic-light-5aa3477c59aec1ebedf2a70d8aebfed0d9d23a77.tar.xz Traffic-light-5aa3477c59aec1ebedf2a70d8aebfed0d9d23a77.zip | |
Added initial code + Made the led stay green for 5 seconds then yellow for 2 seconds then red
Diffstat (limited to 'color.h')
| -rw-r--r-- | color.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,6 +1,9 @@ #include "tivaware.h"
+#define LED_RED (1U << 1)
+#define LED_BLUE (1U << 2)
+#define LED_GREEN (1U << 3)
#define PORTF GPIO_PORTF_DATA_R
#define INTIAL_COLOR WHITE
#define RED 1
|
