1
0
mirror of https://github.com/bluekitchen/btstack.git synced 2025-03-24 22:43:35 +00:00

stm32-f4discovery-cc256x: control LED3 (orange) with hal_led_toggle

This commit is contained in:
Matthias Ringwald 2025-01-15 18:37:15 +01:00
parent be7469f189
commit e7055fc405

@ -250,11 +250,8 @@ ssize_t _read(int fd, void * buf, size_t count){
return -1;
}
// TODO: control LED instead of printing its state
void hal_led_toggle(void){
static bool led_state = false;
led_state = !led_state;
printf("LED State %u\n", led_state);
HAL_GPIO_TogglePin( LD3_GPIO_Port, LD3_Pin);
}
// main.c