UP 准备加入彩屏支持

This commit is contained in:
jixishi
2024-07-05 23:38:31 +08:00
parent 7719984a6e
commit 899dcdd294
6 changed files with 158 additions and 74 deletions

View File

@@ -119,22 +119,9 @@ void Test_OLED() {
OLED_Init(&oled);
OLED_CLS(&oled);
uint8_t buft[13] = {0x6C, 0x14, 0x6C, 0xE1, 0x5F, 0x0F, 0x6D, 0xB2, 0x4F, 0x4D, 0x8B, 0xA1, 0x00};
// OLED_ShowCHString(&oled, 16, 1, buft);
uint8_t sbuf[30] = {0};
uint8_t bufx[8] = {0x5F, 0x53, 0x52, 0x4D, 0x6D, 0xB2, 0x4F, 0x4D};
sprintf(sbuf, "%s: 13.4271m\0", bufx);
// OLED_ShowCHString(&oled, 1, 24, sbuf);
OLED_ShowCHString(&oled, 1, 24, "姓名学号:2233");
OLED_DrawRect(&oled, 0, 0, 127, 63);
// };//
// char buf[30] = {0x60,0x6F,0x59, 0xD3,0x54, 0x0D,0x6B, 0x66,0x65, 0xED,0x73, 0xED,0x7E, 0xA7,0x4F, 0xE1,0x60, 0x6F,0x66, 0x3E,0x79, 0x3A,0x56, 0xFE,0x72, 0x47,0x89, 0xC6,0x98, 0x91,0x4E, 0x13,0x4E, 0x1A,0x75, 0x35,0x5B, 0x50,};
//
// uint8_t sbuf[30] = {0};
// sprintf(sbuf, "%sC\0", buf);
// OLED_ShowCHString(&oled, 1, 16, sbuf);
OLED_Refresh(&oled);