mirror of
https://github.com/candle-usb/candleLight_fw.git
synced 2025-01-28 06:02:52 +08:00
enable power-on LED blinkage on all boards
what's not to like ?
This commit is contained in:
parent
465e957db9
commit
2416f260bb
@ -71,15 +71,13 @@ int main(void)
|
||||
|
||||
led_init(&hLED, LED1_GPIO_Port, LED1_Pin, LED1_Active_High, LED2_GPIO_Port, LED2_Pin, LED2_Active_High);
|
||||
|
||||
#if BOARD == BOARD_canable
|
||||
/* nice wake-up pattern */
|
||||
for(uint8_t i=0; i<10; i++)
|
||||
{
|
||||
HAL_GPIO_TogglePin(LED1_GPIO_Port, LED1_Pin);
|
||||
HAL_Delay(50);
|
||||
HAL_GPIO_TogglePin(LED2_GPIO_Port, LED2_Pin);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
led_set_mode(&hLED, led_mode_off);
|
||||
timer_init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user