mirror of
https://github.com/No-Chicken/Power-Pico.git
synced 2026-04-03 13:02:36 +08:00
add beep in setting
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "user_TasksInit.h"
|
||||
#include "main.h"
|
||||
#include "key.h"
|
||||
#include "beep.h"
|
||||
|
||||
/* Private typedef -----------------------------------------------------------*/
|
||||
|
||||
@@ -27,6 +28,13 @@ void KeyTask(void *argument)
|
||||
if(keystr != 0)
|
||||
{
|
||||
osMessageQueuePut(Key_MessageQueue, &keystr, 0, 1);
|
||||
// beep
|
||||
if(1)
|
||||
{
|
||||
beep_open();
|
||||
osDelay(50);
|
||||
beep_close();
|
||||
}
|
||||
}
|
||||
osDelay(10);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user