STM32 Traffic Control
Loading...
Searching...
No Matches
TrafficLight Struct Reference

Traffic light configuration and runtime state. More...

#include <lights.h>

Public Attributes

LightState state
int carCount
int redPin
int greenPin
uint32_t timerEnd

Detailed Description

Traffic light configuration and runtime state.

Member Data Documentation

◆ carCount

int TrafficLight::carCount

Number of cars detected

◆ greenPin

int TrafficLight::greenPin

GPIO pin for GREEN LED

◆ redPin

int TrafficLight::redPin

GPIO pin for RED LED

◆ state

LightState TrafficLight::state

Current state of the light

◆ timerEnd

uint32_t TrafficLight::timerEnd

Timer based on car count


The documentation for this struct was generated from the following file: