|
代码:
- #include "GUI.h"
- /*********************************************************************
- *
- * MainTask
- */
- void MainTask(void)
- {
- GUI_HMEM hMem, hMem1, hMem2;
- GUI_Init();
- GUI_SetBkColor(GUI_BLUE);
- GUI_Clear();
- GUI_SetColor(GUI_WHITE);
- GUI_SetFont(&GUI_Font16_1);
- GUI_DispStringAt("http://www.armfly.com/", 2, 5);
- hMem = GUI_QR_Create("http://www.armfly.com/", 7, GUI_QR_ECLEVEL_L, 0);
- GUI_QR_Draw(hMem, 2, 30);
- GUI_DispStringAt("http://www.armbbs.cn/", 190, 5);
- hMem1 = GUI_QR_Create("http://www.armbbs.cn/", 5, GUI_QR_ECLEVEL_L, 0);
- GUI_QR_Draw(hMem1, 190, 30);
- GUI_DispStringAt("https://www.segger.com/", 330, 5);
- hMem2 = GUI_QR_Create("https://www.segger.com/", 3, GUI_QR_ECLEVEL_L, 0);
- GUI_QR_Draw(hMem2, 330, 30);
- while (1)
- {
- GUI_Delay(10);
- }
- }
复制代码
|
|