dude are colors even real
This commit is contained in:
20
TrafficLightsPlusPlus/Core/Src/breadboard.cpp
Normal file
20
TrafficLightsPlusPlus/Core/Src/breadboard.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user