From cfb9cd1526005d7f36138e4180eac2fd55b1bcb3 Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Tue, 6 Apr 2021 10:20:22 +0100 Subject: Update ESP32-VirtualMatrixPanel-I2S-DMA.h --- ESP32-VirtualMatrixPanel-I2S-DMA.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } } -- cgit v1.3.1