mirror of
https://github.com/No-Chicken/Power-Pico.git
synced 2026-04-03 13:02:36 +08:00
加入语言get set方法
This commit is contained in:
@@ -33,6 +33,10 @@ bool ui_get_key_sound_enable(void) {
|
|||||||
return Sys_Get_KeySoundEnable();
|
return Sys_Get_KeySoundEnable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8_t ui_get_language_select(void) {
|
||||||
|
return Sys_Get_LanguageSelect();
|
||||||
|
}
|
||||||
|
|
||||||
uint16_t ui_get_display_rotation(void) {
|
uint16_t ui_get_display_rotation(void) {
|
||||||
return Sys_Get_Rotation();
|
return Sys_Get_Rotation();
|
||||||
}
|
}
|
||||||
@@ -55,6 +59,10 @@ void ui_set_key_sound_enable(bool enable) {
|
|||||||
Sys_Set_KeySoundEnable(enable);
|
Sys_Set_KeySoundEnable(enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ui_set_language_select(uint8_t lang) {
|
||||||
|
Sys_Set_LanguageSelect(lang);
|
||||||
|
}
|
||||||
|
|
||||||
void ui_set_display_rotation(uint16_t rotation) {
|
void ui_set_display_rotation(uint16_t rotation) {
|
||||||
Sys_Set_Rotation(rotation);
|
Sys_Set_Rotation(rotation);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user