diff options
| author | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2023-12-16 23:04:37 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-16 23:04:37 +0000 |
| commit | 61960e1a9b48d0aff16952f881e44bcdb2672847 (patch) | |
| tree | 40979be9a2d4fbc1767d873b27bdd65ce2922215 /src | |
| parent | e1025d0df2563a224abb95206e969e39ea463c94 (diff) | |
| parent | 3f0fdc72bcbdc929f5fd95653bf6cb2c4a0bcb88 (diff) | |
Merge pull request #543 from Lukaswnd/master
fix Adafruit_GFX override setRotation
Diffstat (limited to 'src')
| -rw-r--r-- | src/ESP32-VirtualMatrixPanel-I2S-DMA.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ESP32-VirtualMatrixPanel-I2S-DMA.h b/src/ESP32-VirtualMatrixPanel-I2S-DMA.h index ebac204..2738599 100644 --- a/src/ESP32-VirtualMatrixPanel-I2S-DMA.h +++ b/src/ESP32-VirtualMatrixPanel-I2S-DMA.h @@ -112,7 +112,7 @@ public: // equivalent methods of the matrix library so it can be just swapped out. void drawPixel(int16_t x, int16_t y, uint16_t color); // overwrite adafruit implementation void fillScreen(uint16_t color); // overwrite adafruit implementation - void setRotation(int rotate); // overwrite adafruit implementation + void setRotation(uint8_t rotate); // overwrite adafruit implementation void fillScreenRGB888(uint8_t r, uint8_t g, uint8_t b); void clearScreen() { display->clearScreen(); } @@ -472,7 +472,7 @@ inline void VirtualMatrixPanel::fillScreen(CRGB color) } #endif -inline void VirtualMatrixPanel::setRotation(int rotate) +inline void VirtualMatrixPanel::setRotation(uint8_t rotate) { if(rotate < 4 && rotate >= 0) _rotate = rotate; |
