File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ void dimmerTask(void *parameter)
34
34
#ifdef LGFX_M5STACK
35
35
static constexpr const int BACKLIGHT_PIN = 32 ;
36
36
if (!ledcChangeFrequency (BACKLIGHT_PIN, freq, PWM_BITDEPTH) ||
37
- !ledcWrite (BACKLIGHT_PIN, LEDC_MAX_VALUE >> 6 ))
37
+ !ledcWrite (BACKLIGHT_PIN, LEDC_MAX_VALUE >> 5 ))
38
38
log_w (" Could not capture M5Stack backlight" );
39
39
#endif
40
40
@@ -66,7 +66,7 @@ void dimmerTask(void *parameter)
66
66
vTaskDelayUntil (&xLastWakeTime, ticksToWait);
67
67
const auto msElapsedToday = msSinceMidnight ();
68
68
69
- if (msElapsedToday) /* to solve flashing at 00:00:000 due to the fact that the first timer has no predecessor at this time */
69
+ if (msElapsedToday) /* to prevent flashing at 00:00:000 due to the fact that the first timer has no predecessor at this time */
70
70
{
71
71
std::lock_guard<std::mutex> lock (channelMutex);
72
72
Original file line number Diff line number Diff line change 1
1
#ifndef _DISPLAY_TASK_
2
2
#define _DISPLAY_TASK_
3
3
4
- #include < LovyanGFX.hpp >
4
+ #define LGFX_AUTODETECT
5
5
#include < LGFX_AUTODETECT.hpp>
6
6
7
7
#include " lcdMessage_t.h"
Original file line number Diff line number Diff line change @@ -40,9 +40,8 @@ static void startDimmerTask()
40
40
41
41
static void ntpCb (void *cb_arg)
42
42
{
43
- sntp_set_time_sync_notification_cb (NULL );
44
- messageOnLcd (" " );
45
43
log_i (" NTP synced" );
44
+ sntp_set_time_sync_notification_cb (NULL );
46
45
startDimmerTask ();
47
46
}
48
47
static void parseTimerFile (File &file)
@@ -170,7 +169,7 @@ void setup(void)
170
169
Serial.begin (115200 );
171
170
172
171
#ifdef LGFX_M5STACK
173
- pinMode (DAC1, OUTPUT); // prevents high pitched noise on the builtin speaker which is connected to DAC1
172
+ pinMode (DAC1, OUTPUT); // prevents high pitched noise on the builtin speaker which is connected to the first DAC
174
173
#endif
175
174
176
175
log_i (" aquacontrol v2" );
You can’t perform that action at this time.
0 commit comments