diff options
| author | Omar Magdy <omar.professional8777@gmail.com> | 2022-08-23 15:17:50 +0200 |
|---|---|---|
| committer | Omar Magdy <omar.professional8777@gmail.com> | 2022-08-23 15:17:50 +0200 |
| commit | e304ce76cb2e66b3009cee4386d9de098e09ce94 (patch) | |
| tree | 73fd498f47eb4c1a47554b4e6168114c1859ba27 /color.c | |
| parent | 33756429cda89ed7ed2fd97b4ae0ca87e3bf36f1 (diff) | |
| download | Traffic-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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;
|
