Browse Source

更改显示屏内容位置

adam_zhuo 2 years ago
parent
commit
4e71eb6a46
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/dual_iic/src/driver.cpp

+ 4 - 4
src/dual_iic/src/driver.cpp

@@ -262,10 +262,10 @@ void Driver::GUI_Show(std::string bat)
     {
         strcpy(buffer, "No IP");
     }
-    GUI_DisString_EN(0, 20, char_ip, &Font12, FONT_BACKGROUND, WHITE); 
-	GUI_DisString_EN(20, 20, buffer, &Font12, FONT_BACKGROUND, WHITE);
-    GUI_DisString_EN(0, 40, char_bat, &Font12, FONT_BACKGROUND, WHITE);  
-    GUI_DisString_EN(26, 40, bat.c_str(), &Font12, FONT_BACKGROUND, WHITE);
+    GUI_DisString_EN(10, 15, char_ip, &Font12, FONT_BACKGROUND, WHITE); 
+	GUI_DisString_EN(30, 15, buffer, &Font12, FONT_BACKGROUND, WHITE);
+    GUI_DisString_EN(10, 35, char_bat, &Font12, FONT_BACKGROUND, WHITE);  
+    GUI_DisString_EN(36, 35, bat.c_str(), &Font12, FONT_BACKGROUND, WHITE);
     OLED_Display();	
 }