added "welcome chime"

This commit is contained in:
2018-01-02 12:10:38 +01:00
parent bd281564b3
commit 41499eff9d
3 changed files with 12 additions and 0 deletions
+9
View File
@@ -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++;
}
+1
View File
@@ -16,6 +16,7 @@ enum GEX_StatusIndicator {
STATUS_DISK_BUSY,
STATUS_DISK_ATTACHED,
STATUS_DISK_REMOVED,
STATUS_WELCOME,
STATUS_HEARTBEAT
};
+2
View File
@@ -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) {