UP 模拟器
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user