File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -150,15 +150,16 @@ void MainTask(void)
150150 }
151151}
152152
153+ /* 调用此函数可更换主题 */
153154void 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) *********************************/
Original file line number Diff line number Diff 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文件夹中的同名文件才能生效
You can’t perform that action at this time.
0 commit comments