Skip to content

Commit

Permalink
chore: update config example
Browse files Browse the repository at this point in the history
  • Loading branch information
pimlie committed Aug 27, 2024
1 parent 47b3f31 commit c0493d0
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/config_example.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
// NOTE: THIS FILE IS ONLY NEEDED WHEN CONFIGURING A CUSTOM SLEEP
// SCHEDULE.
// IF USING A SINGLE/STATIC SLEEP DURATION THEN THIS FILE CAN BE OMITTED
// #include "config.h"
// Note:
// This file is only needed when configuring a custom sleep schedule.
// If using a single/static sleep duration then this file can be omitted
/* REMOVE THIS LINE TO ENABLE THE SLEEP SCHEDULE
#include "config.h"
#define CONFIG_CPP
// How long to sleep between image refreshes
// - there is no validation of any kind, make sure your slots are continuous
// - falls back to TIME_TO_SLEEP_MIN if your slots are not continuous
// - a schedule slot is configured per day, i.e. cronjob style
// - dow = DayOfWeek, starts at 1 = Monday to 7 = Sunday
// SleepScheduleSlot sleepSchedule[] = {
/* EXAMPLE BLOCKS
// EXAMPLE BLOCKS
{ // On each workday from 00:00 to 08:30 sleep for 1 hour
.start_dow = 1,
.start_hour = 0,
Expand Down Expand Up @@ -55,7 +57,7 @@
.end_minute = 0,
.sleep_in_seconds = 300,
},
*/
// };
};
//const size_t sleepScheduleSize = sizeof(sleepSchedule) / sizeof(sleepSchedule[0]);
const size_t sleepScheduleSize = sizeof(sleepSchedule) / sizeof(sleepSchedule[0]);
/**/

0 comments on commit c0493d0

Please sign in to comment.