added "welcome chime"

sipo
Ondřej Hruška 7 years ago
parent bd281564b3
commit 41499eff9d
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 9
      platform/status_led.c
  2. 1
      platform/status_led.h
  3. 2
      tasks/task_main.c

@ -129,6 +129,15 @@ void Indicator_Tick(void)
else if (effect_time % 200 == 0) led_on();
else if (effect_time % 200 == 100) led_off();
}
else if (active_effect == STATUS_WELCOME) {
if (effect_time == 0) led_on();
else if (effect_time == 200) led_off();
else if (effect_time == 300) led_on();
else if (effect_time == 500) {
led_off();
active_effect = STATUS_NONE;
}
}
effect_time++;
}

@ -16,6 +16,7 @@ enum GEX_StatusIndicator {
STATUS_DISK_BUSY,
STATUS_DISK_ATTACHED,
STATUS_DISK_REMOVED,
STATUS_WELCOME,
STATUS_HEARTBEAT
};

@ -24,6 +24,8 @@ void TaskMain(void const * argument)
vfs_mngr_init(1);
#endif
Indicator_Effect(STATUS_WELCOME);
uint32_t startTime = xTaskGetTickCount();
uint32_t cnt = 1;
while(1) {

Loading…
Cancel
Save