Skip to content

A few improvements #404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions include/EEPROMAnything.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ void read() {
Serial.print("OWM_city : ");
Serial.println(G.openWeatherMap.cityid);

for (uint8_t i = 0; i < MAX_BIRTHDAY_COUNT; i++) {
Serial.printf("Birthday%1u: %02u.%02u.%04u\n", i, G.birthday[i].day,
G.birthday[i].month, G.birthday[i].year);
}

delay(100);
}
} // namespace eeprom
13 changes: 10 additions & 3 deletions include/Transitiontypes/Transition.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ enum Transition_t {
SNAKE = 10,
// only internaly used
RANDOM = 11,
COUNTDOWN = 98,
NEWYEAR = 99

BIRTHDAY = 97,
NEWYEAR_COUNTDOWN = 98,
NEWYEAR_FIRE = 99
};

enum Colorize { OFF = 0, WORDS = 1, CHARACTERS = 2 };
Expand Down Expand Up @@ -155,7 +157,7 @@ class Transition {
void setPixelForChar(uint8_t col, uint8_t row, uint8_t offsetCol,
unsigned char unsigned_d1, HsbColor color);
inline bool isIdle() { return phase == 0; }
bool isSilvester(Transition_t &type, struct tm &tm, bool trigger);
bool isSpecialEvent(Transition_t &type, struct tm &tm, bool trigger);
Transition_t getTransitionType(bool trigger);
bool isColorization();
bool changeBrightness();
Expand Down Expand Up @@ -199,6 +201,11 @@ class Transition {
bool hasMinuteChanged();
bool isOverwrittenByTransition(WordclockChanges flag, uint8_t minute);

//------------------------------------------------------------------------------
// Loop Functions
//------------------------------------------------------------------------------
void init();

//------------------------------------------------------------------------------
// Loop Functions
//------------------------------------------------------------------------------
Expand Down
Loading
Loading