21 lines
360 B
C++
21 lines
360 B
C++
/*
|
|
* breadboard.cpp
|
|
*
|
|
* Created on: Sep 22, 2025
|
|
* Author: ja
|
|
*/
|
|
|
|
#include "breadboard.h"
|
|
|
|
void SetTrafficLights(TrafficState s)
|
|
{
|
|
HAL_GPIO_WritePin(LED_Port, Green_Pin, GPIO_PIN_RESET);
|
|
HAL_GPIO_WritePin(LED_Port, Yellow_Pin, GPIO_PIN_RESET);
|
|
HAL_GPIO_WritePin(LED_Port, Red_Pin, GPIO_PIN_RESET);
|
|
|
|
switch (s)
|
|
{
|
|
case TrafficState:::GREEN
|
|
}
|
|
}
|