diff options
| -rw-r--r-- | ESP32-VirtualMatrixPanel-I2S-DMA.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ESP32-VirtualMatrixPanel-I2S-DMA.h b/ESP32-VirtualMatrixPanel-I2S-DMA.h index 92d5ee7..4ea8a86 100644 --- a/ESP32-VirtualMatrixPanel-I2S-DMA.h +++ b/ESP32-VirtualMatrixPanel-I2S-DMA.h @@ -175,7 +175,10 @@ inline void VirtualMatrixPanel::drawPixelRGB888(int16_t x, int16_t y, uint8_t r, } inline void VirtualMatrixPanel::setRotate(bool rotate) { - _rotate=rotate; + _rotate=rotate; + + // We don't support rotation by degrees. + if (rotate) { setRotation(1); } else { setRotation(0); } } |
