Skip to content

Commit 32657ec

Browse files
committed
V1.0.0
1 parent e8393a2 commit 32657ec

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Examples/MainTask.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,16 @@ void MainTask(void)
150150
}
151151
}
152152

153+
/* 调用此函数可更换主题 */
153154
void gui_theme_switching(void)
154155
{
155-
static USHORT theme_id;
156-
theme_id = DISPLAY_1_THEME_2;
156+
static USHORT theme_id = DISPLAY_1_THEME_2;
157157

158158
if (++theme_id >= DISPLAY_1_THEME_TABLE_SIZE)
159159
theme_id = 0;
160160

161161
gx_studio_display_configure(DISPLAY_1, stm32_graphics_driver_setup_monochrome,
162162
LANGUAGE_ENGLISH, theme_id, &root);
163163
}
164+
MSH_CMD_EXPORT(gui_theme_switching, gui_theme_switching);
164165
/***************************** 安富莱电子 www.armfly.com (END OF FILE) *********************************/

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ extern void transfer_data(uint8_t *data, uint8_t len);
2727

2828

2929

30-
使用GUIX Studio可打开GUIX Studio OLED Demo中的工程
30+
使用GUIX Studio可打开GUIX Studio OLED Demo中的工程
31+
GUIX Studio生成的文件需要替换Example文件夹中的同名文件才能生效

0 commit comments

Comments
 (0)