UP BMP脚本

This commit is contained in:
JiXieShi
2024-06-25 22:53:45 +08:00
parent e22ddd0bcd
commit 8c8cf20056
5 changed files with 15 additions and 19 deletions

View File

@@ -327,18 +327,12 @@ void OLED_ShowPic(OLED_T *dev, uint8_t x0, uint8_t y0, uint8_t w, uint8_t h, uin
uint16_t x = x0, y = y0;
for (index = 0; index < (w * h) / 8; index++) {
OLED_BSet(dev, x, y, bmp[index]);
x++;
if ((x - x0) == w) {
y += 8;
x = x0;
}
}
// uint8_t y = 0;
// if (y % 8 == 0)y = 0;
// else y += 1;
// for (y = y0; y < y1; y++) {
// OLED_SPos(dev, x0, y);
// dev->data(bmp + y * (x1 - x0), x1 - x0);
// }
}
void OLED_Fill(OLED_T *dev, uint8_t data) {