some minimal progress
This commit is contained in:
10
cube/User/Src/led.c
Normal file
10
cube/User/Src/led.c
Normal file
@ -0,0 +1,10 @@
|
||||
#include <main.h>
|
||||
#include <led.h>
|
||||
|
||||
void ledRed(bool on) {
|
||||
HAL_GPIO_WritePin(LED_Red_GPIO_Port, LED_Red_Pin, on ? GPIO_PIN_SET : GPIO_PIN_RESET);
|
||||
}
|
||||
|
||||
void ledGreen(bool on) {
|
||||
HAL_GPIO_WritePin(LED_Green_GPIO_Port, LED_Green_Pin, on ? GPIO_PIN_SET : GPIO_PIN_RESET);
|
||||
}
|
Reference in New Issue
Block a user