schreibfaul1 / ESP32-MiniWebRadio

Internetradio with ESP32, I2S DAC and SPI TFT Display with Touchpad
https://www.youtube.com/watch?v=6QbPee2583o
331 stars 82 forks source link

brightness controll in v3.3 #479

Closed clear-sky closed 3 months ago

clear-sky commented 3 months ago

Hi Dear Wolle! thanks for v3.3 have you removed brightness control in v3.3? I disabled bh1750 as below

define I2C_SDA -1 // I2C, dala line for additional HW

define I2C_SCL -1 // I2C, clock line for additional HW

but brightness is 100% and I could not reduce it I am on esp-s3

schreibfaul1 commented 3 months ago

Hello clear-sky, you do not need to set the defines to -1. There is an automatic detection of what is connected to the I2C bus. If the bus remains free, this should not be a problem. Other devices, such as a capacitive touchpad or a rotary encoder, can be connected here later. The Brightness button is the same as before image The regulation now makes a slider image

clear-sky commented 3 months ago

Hi Dear Wolle! thanks for the answer-but some thing could be wrong! my lcd does not have touch thus i edited setting.json file in sdcard as below: {"volume":2,"ringvolume":21,"alarmtime":180,"alarm_weekdays":0,"timeAnnouncing":true,"mute":false,"brightness":5,"sleeptime":0,"lastconnectedhost":"http://server4.streamserver24.com:26237/stream","station":5,"sumstations":14,"toneLP":0,"toneBP":0,"toneHP":0,"balance":0,"Timezone_Name":"Europe/Berlin","Timezone_String":"CET-1CEST,M3.5.0,M10.5.0/3","timeFormat":24}

as you see brightness is set to 5 but my lcd brightness is max and seems radio does not reed brightness value from this file

schreibfaul1 commented 3 months ago

Indeed, there is a mistake.

clear-sky commented 3 months ago

Hi Dear Wolle! thanks problem solved! what is your opinion to bring brightness control to web interface?