Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Increase number of brightness levels to 10 #141

Merged
merged 1 commit into from
Aug 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Core/Src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ __attribute__((optimize("-O0"))) void BSOD(BSOD_t fault, void *pc, void *lr)

lcd_sync();
lcd_reset_active_buffer();
odroid_display_set_backlight(ODROID_BACKLIGHT_LEVEL3);
odroid_display_set_backlight(ODROID_BACKLIGHT_LEVEL6);

odroid_overlay_draw_text(0, 0, GW_LCD_WIDTH, msg, C_RED, C_BLUE);

Expand Down
1 change: 1 addition & 0 deletions Core/Src/porting/lib/littlefs
Submodule littlefs added at ead508
2 changes: 1 addition & 1 deletion Core/Src/porting/odroid_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "odroid_display.h"
#include "gw_lcd.h"

static const uint8_t backlightLevels[] = {128, 144, 160, 192, 255};
static const uint8_t backlightLevels[] = {128, 130, 133, 139, 149, 162, 178, 198, 222, 255};
static odroid_display_backlight_t backlightLevel = ODROID_BACKLIGHT_LEVEL3;
static odroid_display_rotation_t rotationMode = ODROID_DISPLAY_ROTATION_OFF;
static odroid_display_scaling_t scalingMode = ODROID_DISPLAY_SCALING_FILL;
Expand Down
2 changes: 1 addition & 1 deletion Core/Src/porting/odroid_settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static const persistent_config_t persistent_config_default = {
.magic = CONFIG_MAGIC,
.version = 1,

.backlight = ODROID_BACKLIGHT_LEVEL3,
.backlight = ODROID_BACKLIGHT_LEVEL6,
.start_action = ODROID_START_ACTION_RESUME,
.volume = ODROID_AUDIO_VOLUME_MAX / 2, // Too high volume can cause brown out if the battery isn't connected.
.font_size = 8,
Expand Down