This commit is contained in:
音游玩的人 2023-07-15 16:18:12 +08:00 committed by GitHub
parent deb3185bc6
commit ba6fe05bd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,9 +9,9 @@
* 128 * 32 128 * 64 * 128 * 32 128 * 64
* *
WouoUI v2.1 WouoUI v2.2
* EC11旋钮使界面卡死的问题 GitHub 线 *
WouoUI v2 WouoUI v2
@ -259,7 +259,7 @@ M_SELECT setting_menu[]
M_SELECT about_menu[] M_SELECT about_menu[]
{ {
{"[ WouoUI ]"}, {"[ WouoUI ]"},
{"- Version: v2.1"}, {"- Version: v2.2"},
{"- Board: STM32F103"}, {"- Board: STM32F103"},
{"- Ram: 20k"}, {"- Ram: 20k"},
{"- Flash: 64k"}, {"- Flash: 64k"},
@ -874,8 +874,11 @@ void layer_init_out()
//动画函数 //动画函数
void animation(float *a, float *a_trg, uint8_t n) void animation(float *a, float *a_trg, uint8_t n)
{ {
if (*a != *a_trg)
{
if (fabs(*a - *a_trg) < 0.15) *a = *a_trg; if (fabs(*a - *a_trg) < 0.15) *a = *a_trg;
if (*a != *a_trg) *a += (*a_trg - *a) / (ui.param[n] / 10.0); else *a += (*a_trg - *a) / (ui.param[n] / 10.0);
}
} }
//消失函数 //消失函数