v0.8.03b
This commit is contained in:
@@ -49,6 +49,9 @@ void loopDspTask(void * pvParameters){
|
||||
void Display::init() {
|
||||
#ifdef USE_NEXTION
|
||||
nextion.begin();
|
||||
#endif
|
||||
#if LIGHT_SENSOR!=255
|
||||
analogSetAttenuation(ADC_0db);
|
||||
#endif
|
||||
_bootStep = 0;
|
||||
dsp.initDisplay();
|
||||
@@ -442,6 +445,10 @@ void Display::_title() {
|
||||
}
|
||||
|
||||
void Display::_time(bool redraw) {
|
||||
#if LIGHT_SENSOR!=255
|
||||
config.store.brightness = AUTOBACKLIGHT(analogRead(LIGHT_SENSOR));
|
||||
config.setBrightness();
|
||||
#endif
|
||||
_clock.draw();
|
||||
/*#ifdef USE_NEXTION
|
||||
nextion.printClock(network.timeinfo);
|
||||
|
||||
Reference in New Issue
Block a user