diff options
| author | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2021-04-06 10:20:22 +0100 |
|---|---|---|
| committer | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2021-04-06 10:20:22 +0100 |
| commit | cfb9cd1526005d7f36138e4180eac2fd55b1bcb3 (patch) | |
| tree | 86422a29f495484141bfb2012c1068378fe491e6 | |
| parent | a8237687cf52a10196f9bab0ebe2166552c6d734 (diff) | |
Update ESP32-VirtualMatrixPanel-I2S-DMA.h
| -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); } } |
