|
|
@@ -22,10 +22,10 @@ typedef struct {
|
|
|
|
|
|
static lcd_handle_t lcdHandle={0};
|
|
|
|
|
|
-extern int st7789_init(lcd_handle_t *h);
|
|
|
-extern int st7789_deinit(lcd_handle_t *h);
|
|
|
-extern void st7789_refresh(lcd_handle_t *hd, uint16_t x, uint16_t y, uint16_t w, uint16_t h, void *data, uint32_t len);
|
|
|
-extern void st7789_rotate(lcd_handle_t *h, int rotate);
|
|
|
+extern int st77xx_init(lcd_handle_t *h);
|
|
|
+extern int st77xx_deinit(lcd_handle_t *h);
|
|
|
+extern void st77xx_refresh(lcd_handle_t *hd, uint16_t x, uint16_t y, uint16_t w, uint16_t h, void *data, uint32_t len);
|
|
|
+extern void st77xx_rotate(lcd_handle_t *h, int rotate);
|
|
|
|
|
|
|
|
|
static inline int set_point(lcd_handle_t *h, int x, int y, uint32_t data)
|
|
|
@@ -75,7 +75,7 @@ void lcd_init(int width, int height, uint32_t color)
|
|
|
h->color = color;
|
|
|
h->rotate = 0;
|
|
|
|
|
|
- st7789_init(h);
|
|
|
+ st77xx_init(h);
|
|
|
|
|
|
//lcd_draw_string(0, 0, LCD_WIDTH, LCD_HEIGHT/10, "SmartPDU", FONT_12, COLOR_WHITE, COLOR_BLACK, HORIZONTAL_CENTER, VERTICAL_CENTER);
|
|
|
//lcd_hw_init(h);
|
|
|
@@ -297,7 +297,7 @@ int lcd_draw_char(lcd_handle_t *hd, int x, int y, int w, int h, uint8_t *c, int
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- st7789_refresh(hd, x0, y0, fdata.width, fdata.height, hd->buf, fdata.width*fdata.height*2);
|
|
|
+ st77xx_refresh(hd, x0, y0, fdata.width, fdata.height, hd->buf, fdata.width*fdata.height*2);
|
|
|
#endif
|
|
|
|
|
|
return fdata.width;
|