Added full matrix support and take care that display doesnt go off

This commit is contained in:
Jens Noack 2020-11-14 20:44:23 +01:00
parent 568ddf6810
commit 19a3601581
2 changed files with 3 additions and 1 deletions

View file

@ -241,6 +241,8 @@ uint8_t LedDisplayController::adjustBrightnessToEnv( void )
uint8_t brightness = ( pow (2, (this->text_sets.disp_brightness / RFade)) ) ;
uint8_t brightness_adj = brightness * this->brightness_adjust ;
//Serial.printf("brightness without adjust : %d . Adjust is: %f. Brightness with adjust : %d .\n", brightness, this->brightness_adjust, brightness_adj);
if(brightness_adj < 1)
brightness_adj = 1;
return brightness_adj;
}

View file

@ -5,7 +5,7 @@
#define TILE_PIXEL_ROWS 8
#define TILE_PIXEL_COLS 8
#define MATRIX_TILES_ROW 1
#define MATRIX_TILES_COL 2
#define MATRIX_TILES_COL 6
#define MATRIX_PIXEL_WIDTH TILE_PIXEL_COLS*MATRIX_TILES_COL
#define MATRIX_PIXEL_HEIGHT TILE_PIXEL_ROWS*MATRIX_TILES_ROW