diff --git a/vscode/OmobiLEDdisplayBluetooth/src/LedDisplayController.cpp b/vscode/OmobiLEDdisplayBluetooth/src/LedDisplayController.cpp index 4a9fe70..8b8e48f 100644 --- a/vscode/OmobiLEDdisplayBluetooth/src/LedDisplayController.cpp +++ b/vscode/OmobiLEDdisplayBluetooth/src/LedDisplayController.cpp @@ -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; } diff --git a/vscode/OmobiLEDdisplayBluetooth/src/main.cpp b/vscode/OmobiLEDdisplayBluetooth/src/main.cpp index 1062d41..a3ce642 100644 --- a/vscode/OmobiLEDdisplayBluetooth/src/main.cpp +++ b/vscode/OmobiLEDdisplayBluetooth/src/main.cpp @@ -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