UP BMP脚本
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user