dayEvent()

Examples

void setup() {
  noLoop();
}

void draw() {
  fill(BLACK);

  int d = day();    // Values from 1 - 31

  // C-style string
  char str[10];
  snprintf(str, 10, "Day: %d", d);

  text(str, 10, 28);
}

// The dayEvent() function is called every day.
// Define ENABLE_DAY_EVENT in settings.h, if you use this function.
void dayEvent() {
  redraw();
}

Description

The dayEvent() function is called when the date is changed. If you use this function, you have to define "ENABLE_DAY_EVENT" at settings.h.

Syntax

dayEvent()

Returns

void

Related

hourEvent()
minuteEvent()
secondEvent()

Back to index