UP 模拟器

This commit is contained in:
JiXieShi
2024-06-22 20:48:59 +08:00
parent 2a5c81891a
commit 0c7c6bb1e9
6 changed files with 580 additions and 20 deletions

View File

@@ -23,7 +23,7 @@ void Refresh_Call(OLED_T *dev) {
uint8_t oledbuf[8][128] = {0};
void Test_OLED() {
SIM_OLED_INIT(128, 64, BLUE, 0x0, 5, 1);
SIM_OLED_INIT(128, 64, CYAN, 0x0, 5, 0);
OLED_T oled = {
.height=64,
.width=128,
@@ -40,7 +40,7 @@ void Test_OLED() {
SIM_OLED_START();
int s = 0;
char buf[30];
while (s < 500) {
while (s < 10) {
sprintf(buf, "DATA:%d", s);
OLED_ShowString(&oled, 2, 2, buf, 12);
OLED_Refresh(&oled);