Skip to content

Commit 8a5a90a

Browse files
Thu 14 Nov 2019 17:33:24 EST - added brands
1 parent 3e88ede commit 8a5a90a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.DS_Store

0 Bytes
Binary file not shown.

Launchers/retro-esp32/main/main.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@
111111
VOLUME = odroid_settings_Volume_get();
112112
odroid_settings_Volume_set(VOLUME);
113113

114+
BRIGHTNESS = get_brightness();
115+
//odroid_settings_Backlight_set(BRIGHTNESS);
116+
114117
// Display
115118
ili9341_init();
116119

@@ -135,9 +138,6 @@
135138
ili9341_prepare();
136139
ili9341_clear(0);
137140

138-
BRIGHTNESS = odroid_settings_Backlight_get();
139-
//odroid_settings_Backlight_set(BRIGHTNESS);
140-
141141
//printf("==============\n%s\n==============\n", "RETRO ESP32");
142142
switch(esp_reset_reason()) {
143143
case ESP_RST_POWERON:
@@ -465,7 +465,7 @@
465465
odroid_settings_Backlight_set(BRIGHTNESS);
466466
usleep(15000);
467467
apply_brightness();
468-
//draw_brightness();
468+
//draw_brightness();
469469
}
470470
void apply_brightness() {
471471
const int DUTY_MAX = 0x1fff;
@@ -478,7 +478,7 @@
478478
BRIGHTNESS,
479479
BRIGHTNESS_LEVELS[BRIGHTNESS],
480480
duty,
481-
currentDuty);
481+
currentDuty);
482482
//if (currentDuty != duty) {
483483
ledc_set_fade_with_time(LEDC_LOW_SPEED_MODE, LEDC_CHANNEL_0, duty, 1);
484484
ledc_fade_start(LEDC_LOW_SPEED_MODE, LEDC_CHANNEL_0, LEDC_FADE_WAIT_DONE);

Odroid/odroid-go-firmware

0 commit comments

Comments
 (0)