feat: 添加实时图像显示菜单

fix: 修改旋转编码器接口中部分拼写错误的问题
pref: 修改zf_common_font.c文件中>字符的图案,方便作为指针显示
This commit is contained in:
2024-01-04 22:07:13 +08:00
parent 59a29d4eac
commit 7efb0ee985
11 changed files with 148 additions and 106 deletions

View File

@@ -12,11 +12,13 @@ void by_pwm_init(void)
void by_pwm_update_duty(uint32_t update_pwm_duty)
{
if (7000UL > update_pwm_duty) {
update_pwm_duty = 7000UL;
if (4000UL < update_pwm_duty) {
update_pwm_duty = 4000UL;
}
pwm_set_duty(TIM4_PWM_MAP1_CH1_D12, update_pwm_duty);
pwm_set_duty(TIM4_PWM_MAP1_CH2_D13, update_pwm_duty);
// pwm_set_duty(TIM4_PWM_MAP1_CH3_D14, update_pwm_duty);
// pwm_set_duty(TIM4_PWM_MAP1_CH4_D15, update_pwm_duty);
}
void by_pwm_power_duty(uint32_t power_pwm_duty_l, uint32_t power_pwm_duty_r)