Progress is drawn on whole screen instead of being bound in box.
Original :
void SSD1306::fillRect(int x, int y, int width, int height) {
for (int i = x; i < x + width; i++) {
for (int j = 0; j < y + height; j++) {
setPixel(i, j);
}
}
}
Should be
for (int i = x; i < x + width; i++) {
for (int j = y; j < y + height; j++) {
display.setPixel(i, j);
}
Hi there,
Progress is drawn on whole screen instead of being bound in box.
Original :
Should be