# SCGUI **Repository Path**: indexhzf/scgui ## Basic Information - **Project Name**: SCGUI - **Description**: /* * SC_GUI for V2. 0 * 一个小内存(1-3k)的开源GUI,支持LVGL抗锯齿字体,动态文字,实用波形图,支持双DMA,简易图层叠加 * 感谢网友开源工具Lvgl Font Tool V0.4 生成 阿里(qq:617622104) * 作者:黎R(WX:13018616872) * 社区:(QQ群:799501887) */ - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 21 - **Created**: 2024-12-26 - **Last Updated**: 2024-12-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SCGUI #### 介绍 /* * SC_GUI for V2.0 * 一个小内存(1-3k)的开源GUI,支持LVGL抗锯齿字体,动态文字,实用波形图,支持双DMA,简易图层叠加 * 感谢网友开源工具Lvgl Font Tool V0.4 生成 阿里(qq:617622104) * 作者:黎R(WX:13018616872) * 社区:(QQ群:799501887) */ ``` //底层接口,与lvgl接口一样 void LCD_DMA_color(int xs, int ys, int xe, int ye, u16 *color) { #if 1 dma_wait_ok(); LCD_DMA_Fill_COLOR( xs, ys, xe, ye,color); #else //-----------------无DMA------------------------ // LCD_SetWindows(xs, ys,xe, ye); for(int y = ys; y <=ye; y++) { for(int x = xs; x <=xe; x++) { gui->bsp_pset (x,y,*color); // LCD_Write_Dat16(*color); //写入数据 color++; } } #endif } extern void LCD_DrawPoint(u16 x,u16 y,u16 color) int main(void) { //NVIC_SetVectorTable(0x08007000,0x00);//flash内存地址 delay_init(); LCD_Init();//LCD初始化 SC_GUI_Init(LCD_DrawPoint,0,C_WHITE,C_RED,(lv_font_t*)&lv_font_14); SC_Clear(0,0,LCD_SCREEN_WIDTH-1,LCD_SCREEN_HEIGHT-1); while(1) { SC_GUI_test(); } } ``` #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)