pref: 修改蜂鸣器为非阻塞形式
This commit is contained in:
@@ -65,14 +65,13 @@ int main(void)
|
||||
// printf("pwm:%lu,%lu,%lu,%lu\r\n", pwm_duty_ls_g, pwm_duty_rs_g, pwm_duty_lb_g, pwm_duty_rb_g);
|
||||
Page_Run();
|
||||
by_frame_parse(&test_data[0].u32);
|
||||
by_buzzer_run();
|
||||
jj_bt_run();
|
||||
in_pos = test_data[1].f32;
|
||||
in_angle = test_data[0].f32;
|
||||
in_state = test_data[2].u8[0];
|
||||
in_stop = test_data[2].u8[1];
|
||||
if (last_state != in_state) {
|
||||
bt_printf("changing to%u\r\n",in_state);
|
||||
bt_printf("changing to%u\r\n", in_state);
|
||||
}
|
||||
last_state = in_state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user