auto switch done, calendar & weather nearly done #16
parent
0f29a82542
commit
332f3a7d6c
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,14 @@
|
||||
#ifndef PLAYLIST_H
|
||||
#define PLAYLIST_H
|
||||
|
||||
#include <WString.h>
|
||||
|
||||
void setupPlaylist();
|
||||
void loopPlaylist();
|
||||
|
||||
void PlaylistNextFace();
|
||||
String PlaylistGetCurrentFace();
|
||||
int32_t PlaylistGetRemainingTimeMs();
|
||||
void PlaylistResetTimer();
|
||||
|
||||
#endif
|
@ -0,0 +1,8 @@
|
||||
#ifndef TOOLS_H
|
||||
#define TOOLS_H
|
||||
|
||||
#define EVERY_N_SECONDS(t) for (static uint16_t _lasttime; \
|
||||
(uint16_t)((uint16_t)millis() - _lasttime) >= (t * 1000); \
|
||||
_lasttime += (t * 1000))
|
||||
|
||||
#endif
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue