@@ -10,7 +10,9 @@
|
||||
#include "touch.h"
|
||||
#include "eeprom.h"
|
||||
#include "key.h"
|
||||
#include "buzzer.h"
|
||||
|
||||
extern TIM_HandleTypeDef htim4;
|
||||
extern touch_device t0;
|
||||
|
||||
task run_loop;//主循环状态机
|
||||
@@ -20,6 +22,9 @@ task run_loop;//
|
||||
|
||||
void main_app()
|
||||
{
|
||||
|
||||
HAL_TIM_PWM_Start(&htim4,TIM_CHANNEL_3);//启动n通道的pwm
|
||||
|
||||
char str[64];
|
||||
LCDx_Init();
|
||||
EPPROM_SLOWWRITE_INIT();
|
||||
@@ -46,6 +51,8 @@ void main_app()
|
||||
|
||||
ui->refresh_ui_flag=1;
|
||||
|
||||
//add_a_note(1000,50,1000);
|
||||
//add_a_note(0,50,0);
|
||||
while(1)
|
||||
{
|
||||
//LCD_set_dot(t0.pix_x, t0.pix_y, RED);
|
||||
@@ -71,6 +78,7 @@ void main_app()
|
||||
UI_Server(ui);
|
||||
TP_Server();
|
||||
EEPROM_SLOWWRITE_SERVER();
|
||||
buzzer_play_server();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user