UP 字库生成脚本

This commit is contained in:
JiXieShi
2024-06-23 18:03:57 +08:00
parent 3a889f16dd
commit 3dcc2f8f20
9 changed files with 218 additions and 22 deletions

View File

@@ -106,19 +106,23 @@ OLED_T oled = {
void Test_OLED() {
SIM_OLED_INIT(128, 64, CYAN, 0x0, 5, 0);
SIM_OLED_START();
OLED_Init(&oled);
OLED_CLS(&oled);
// OLED_DrawRect(&oled, 0, 0, 127, 63);
mainpage(&oled);
OLED_DrawRect(&oled, 0, 0, 127, 63);
SIM_OLED_START();
int s = 0;
char buf[30];
char buf[30] = {0x5B, 0x57, 0x5E, 0x93, 0x75, 0x1F, 0x62, 0x10, 0x6D, 0x4B, 0x8B, 0xD5};
OLED_ShowCHString(&oled, 15, 16, buf, 16);
OLED_Refresh(&oled);
_beginthread(Get_Key, 0, NULL);
pageinit();
Sleep(5000);
while (1) {
if (pageid > 3)pageid = 0;
pagesearch(pageid).page(&oled);
// pagesearch(pageid).page(&oled);
// sprintf(buf, "DATA:%d", s);
// OLED_ShowString(&oled, 2, 51, buf, 12);
OLED_Refresh(&oled);