aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-04-06 10:20:22 +0100
committermrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-04-06 10:20:22 +0100
commitcfb9cd1526005d7f36138e4180eac2fd55b1bcb3 (patch)
tree86422a29f495484141bfb2012c1068378fe491e6
parenta8237687cf52a10196f9bab0ebe2166552c6d734 (diff)
Update ESP32-VirtualMatrixPanel-I2S-DMA.h
-rw-r--r--ESP32-VirtualMatrixPanel-I2S-DMA.h5
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); }
}