minuteEvent()

Examples

void setup() {
  noLoop();
}

void draw() {
  fill(BLACK);

  int m = minute();    // Values from 0 - 59

  // C-style string
  char str[15];
  snprintf(str, 15, "Minute: %d", m);

  text(str, 10, 28);
}

// The minuteEvent() function is called every minute.
// Define ENABLE_MINUTE_EVENT in settings.h, if you use this function.
void minuteEvent() {
  redraw();
}

Description

The minuteEvent() function is called when the minute is changed. If you use this function, you have to define "ENABLE_MINUTE_EVENT" at settings.h.

Syntax

minuteEvent()

Returns

void

Related

dayEvent()
hourEvent()
secondEvent()

Back to index