v 2.2
This commit is contained in:
parent
fc38c7414e
commit
3ccd2ba10b
@ -277,7 +277,7 @@ M_SELECT setting_menu[]
|
||||
M_SELECT about_menu[]
|
||||
{
|
||||
{"WouoUI"},
|
||||
{"v2.1"},
|
||||
{"v2.2"},
|
||||
{"Board: STM32F103"},
|
||||
{"Ram: 20k"},
|
||||
{"Flash: 64k"},
|
||||
@ -959,9 +959,12 @@ void layer_init_out()
|
||||
|
||||
//动画函数
|
||||
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 (*a != *a_trg) *a += (*a_trg - *a) / (ui.param[n] / 10.0);
|
||||
else *a += (*a_trg - *a) / (ui.param[n] / 10.0);
|
||||
}
|
||||
}
|
||||
|
||||
//消失函数
|
||||
|
Loading…
Reference in New Issue
Block a user