mrcodetastic / ESP32-HUB75-MatrixPanel-DMA

An Adafruit GFX Compatible Library for the ESP32, ESP32-S2, ESP32-S3 to drive HUB75 LED matrix panels using DMA for high refresh rates. Supports panel chaining.
MIT License
939 stars 208 forks source link

panel brightness cannot be changed #519

Closed fajharelektronik4 closed 10 months ago

fajharelektronik4 commented 10 months ago

Hi. i have a little problem. i have tried ChainedPanels sketch example with esp32 s3 n16r8 but i can't change the brightness of the panel, i have changed the brightness from value 10-255 but it doesn't show any change.

fajharelektronik4 commented 10 months ago

resolved..there was an error in placing the program line in the example.

before

  dma_display->setBrightness8(200); // range is 0-255, 0 - 0%, 255 - 100%

   // Allocate memory and start DMA display
   if (not dma_display->begin() )
     Serial.println("****** !KABOOM! I2S memory allocation failed ***********");

after

   // Allocate memory and start DMA display
   if (not dma_display->begin() )
     Serial.println("****** !KABOOM! I2S memory allocation failed ***********");

      dma_display->setBrightness8(200); // range is 0-255, 0 - 0%, 255 - 100%