Skip to content

Commit 61960e1

Browse files
authored
Merge pull request #543 from Lukaswnd/master
fix Adafruit_GFX override setRotation
2 parents e1025d0 + 3f0fdc7 commit 61960e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ESP32-VirtualMatrixPanel-I2S-DMA.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class VirtualMatrixPanel
112112
// equivalent methods of the matrix library so it can be just swapped out.
113113
void drawPixel(int16_t x, int16_t y, uint16_t color); // overwrite adafruit implementation
114114
void fillScreen(uint16_t color); // overwrite adafruit implementation
115-
void setRotation(int rotate); // overwrite adafruit implementation
115+
void setRotation(uint8_t rotate); // overwrite adafruit implementation
116116

117117
void fillScreenRGB888(uint8_t r, uint8_t g, uint8_t b);
118118
void clearScreen() { display->clearScreen(); }
@@ -472,7 +472,7 @@ inline void VirtualMatrixPanel::fillScreen(CRGB color)
472472
}
473473
#endif
474474

475-
inline void VirtualMatrixPanel::setRotation(int rotate)
475+
inline void VirtualMatrixPanel::setRotation(uint8_t rotate)
476476
{
477477
if(rotate < 4 && rotate >= 0)
478478
_rotate = rotate;

0 commit comments

Comments
 (0)