fix: homework7 test3 charset bugs

This commit is contained in:
2025-05-25 02:14:44 +08:00
parent 23ea54ea6a
commit 6d58ed79d8
+11 -11
View File
@@ -3,7 +3,7 @@
* @author: msksbr * @author: msksbr
* @date: 2025-05-25 * @date: 2025-05-25
* @description: a test for homework7's homework tests * @description: a test for homework7's homework tests
* @version: 1.0 * @version: 1.0f: fix the bug that charset is RL reversed
* homework zh_CN: 基于点阵的 9 到 0 的倒计时秒表显示 * homework zh_CN: 基于点阵的 9 到 0 的倒计时秒表显示
* homework EN: display a countdown timer on the led matrix from 9 to 0 * homework EN: display a countdown timer on the led matrix from 9 to 0
*/ */
@@ -11,16 +11,16 @@
#include "homework7.h" #include "homework7.h"
unsigned char code number_char[10][8] = { unsigned char code number_char[10][8] = {
{0x70, 0xd8, 0xd8, 0xd8, 0xd8, 0xd8, 0x70, 0x00}, // 0 {0x0E, 0x1B, 0x1B, 0x1B, 0x1B, 0x1B, 0x0E, 0x00}, // 0
{0x30, 0xf0, 0x30, 0x30, 0x30, 0x30, 0xf8, 0x00}, // 1 {0x0C, 0x0F, 0x0C, 0x0C, 0x0C, 0x0C, 0x1F, 0x00}, // 1
{0xf0, 0xd8, 0x18, 0x38, 0x70, 0xe0, 0xf8, 0x00}, // 2 {0x0F, 0x1B, 0x18, 0x1C, 0x0E, 0x07, 0x1F, 0x00}, // 2
{0xf0, 0xd8, 0x18, 0x78, 0x18, 0xd8, 0xf0, 0x00}, // 3 {0x0F, 0x1B, 0x18, 0x1E, 0x18, 0x1B, 0x0F, 0x00}, // 3
{0x30, 0x30, 0x70, 0xf0, 0xf8, 0x30, 0x30, 0x00}, // 4 {0x0C, 0x0C, 0x0E, 0x0F, 0x1F, 0x0C, 0x0C, 0x00}, // 4
{0xf8, 0xc0, 0xf0, 0x18, 0x18, 0xd8, 0xf0, 0x00}, // 5 {0x1F, 0x03, 0x0F, 0x18, 0x18, 0x1B, 0x0F, 0x00}, // 5
{0x78, 0xe0, 0xf0, 0xd8, 0xd8, 0xf8, 0x70, 0x00}, // 6 {0x1E, 0x07, 0x0F, 0x1B, 0x1B, 0x1F, 0x0E, 0x00}, // 6
{0xf8, 0x18, 0x38, 0x30, 0x70, 0x60, 0x60, 0x00}, // 7 {0x1F, 0x18, 0x1C, 0x0C, 0x0E, 0x06, 0x06, 0x00}, // 7
{0x70, 0xd8, 0xf8, 0xf8, 0xd8, 0xd8, 0x70, 0x00}, // 8 {0x0E, 0x1B, 0x1F, 0x1F, 0x1B, 0x1B, 0x0E, 0x00}, // 8
{0x70, 0xd8, 0xd8, 0xd8, 0x78, 0x38, 0xf0, 0x00} // 9 {0x0E, 0x1B, 0x1B, 0x1B, 0x1E, 0x1C, 0x0F, 0x00} // 9
}; };
void test5() void test5()