fix: 修复蜂鸣器bug及日常更新
This commit is contained in:
12
app/main.c
12
app/main.c
@@ -41,7 +41,7 @@ int main(void)
|
||||
system_delay_init();
|
||||
debug_init();
|
||||
|
||||
encoder_dir_init(TIM5_ENCOEDER, TIM5_ENCOEDER_MAP0_CH1_A0, TIM5_ENCOEDER_MAP0_CH2_A1);
|
||||
encoder_quad_init(TIM5_ENCOEDER, TIM5_ENCOEDER_MAP0_CH1_A0, TIM5_ENCOEDER_MAP0_CH2_A1);
|
||||
ips200_init(IPS200_TYPE_SPI);
|
||||
while (imu660ra_init())
|
||||
;
|
||||
@@ -49,8 +49,8 @@ int main(void)
|
||||
jj_bt_init();
|
||||
by_rb_init();
|
||||
by_pwm_init();
|
||||
// by_buzzer_init();
|
||||
|
||||
by_buzzer_init();
|
||||
|
||||
by_tiny_frame_init();
|
||||
Page_Init();
|
||||
sport_pid_init();
|
||||
@@ -59,10 +59,12 @@ int main(void)
|
||||
pit_ms_init(TIM1_PIT, 1); // 运动解算,bianmaqi
|
||||
|
||||
printf("ok\r\n");
|
||||
|
||||
|
||||
while (1) {
|
||||
Page_Run();
|
||||
//by_buzzer_run();
|
||||
ips200_show_float(40, 40, in_angle, 4, 5);
|
||||
ips200_show_float(40, 60, in_pos, 4, 5);
|
||||
by_buzzer_run();
|
||||
jj_bt_run();
|
||||
by_tiny_frame_run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user