Added full matrix support and take care that display doesnt go off
This commit is contained in:
parent
568ddf6810
commit
19a3601581
2 changed files with 3 additions and 1 deletions
|
@ -241,6 +241,8 @@ uint8_t LedDisplayController::adjustBrightnessToEnv( void )
|
||||||
uint8_t brightness = ( pow (2, (this->text_sets.disp_brightness / RFade)) ) ;
|
uint8_t brightness = ( pow (2, (this->text_sets.disp_brightness / RFade)) ) ;
|
||||||
uint8_t brightness_adj = brightness * this->brightness_adjust ;
|
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);
|
//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;
|
return brightness_adj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#define TILE_PIXEL_ROWS 8
|
#define TILE_PIXEL_ROWS 8
|
||||||
#define TILE_PIXEL_COLS 8
|
#define TILE_PIXEL_COLS 8
|
||||||
#define MATRIX_TILES_ROW 1
|
#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_WIDTH TILE_PIXEL_COLS*MATRIX_TILES_COL
|
||||||
#define MATRIX_PIXEL_HEIGHT TILE_PIXEL_ROWS*MATRIX_TILES_ROW
|
#define MATRIX_PIXEL_HEIGHT TILE_PIXEL_ROWS*MATRIX_TILES_ROW
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue