diff options
| author | Dhruv Kumar <dhruv.kumar.s17@gmail.com> | 2023-01-19 01:19:03 +0000 |
|---|---|---|
| committer | Dhruv Kumar <dhruv.kumar.s17@gmail.com> | 2023-01-19 01:19:03 +0000 |
| commit | 4d0cbe437df4d4a101155facd8b8ba70dfc26a1c (patch) | |
| tree | ed2a1cbef2250317555f574d0ede48cd02a3fd43 /examples | |
| parent | 502110d4bbfca52d907ac36381390f3b90cbb17d (diff) | |
Fixed setBrightness in ChainedPanelsAuroraDemo
setBrightness was called before matrix->begin which didn't work.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/ChainedPanelsAuroraDemo/ChainedPanelsAuroraDemo.ino | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/ChainedPanelsAuroraDemo/ChainedPanelsAuroraDemo.ino b/examples/ChainedPanelsAuroraDemo/ChainedPanelsAuroraDemo.ino index 957201f..db6d4c9 100644 --- a/examples/ChainedPanelsAuroraDemo/ChainedPanelsAuroraDemo.ino +++ b/examples/ChainedPanelsAuroraDemo/ChainedPanelsAuroraDemo.ino @@ -109,13 +109,13 @@ void setup() // OK, now we can create our matrix object matrix = new MatrixPanel_I2S_DMA(mxconfig); - // let's adjust default brightness to about 75% - matrix->setBrightness8(96); // range is 0-255, 0 - 0%, 255 - 100% - // Allocate memory and start DMA display if( not matrix->begin() ) Serial.println("****** !KABOOM! I2S memory allocation failed ***********"); + // let's adjust default brightness to about 75% + matrix->setBrightness8(96); // range is 0-255, 0 - 0%, 255 - 100% + // create VirtualDisplay object based on our newly created dma_display object virtualDisp = new VirtualMatrixPanel((*matrix), NUM_ROWS, NUM_COLS, PANEL_RES_X, PANEL_RES_Y, SERPENT, TOPDOWN); |
