|
STM32 Traffic Control
|
Traffic light configuration and runtime state. More...
#include <lights.h>
Public Attributes | |
| LightState | state |
| int | carCount |
| int | redPin |
| int | greenPin |
| uint32_t | timerEnd |
Traffic light configuration and runtime state.
| int TrafficLight::carCount |
Number of cars detected
| int TrafficLight::greenPin |
GPIO pin for GREEN LED
| int TrafficLight::redPin |
GPIO pin for RED LED
| LightState TrafficLight::state |
Current state of the light
| uint32_t TrafficLight::timerEnd |
Timer based on car count