/// mussel1 - mussel voter influenced by time /// /// SPDX-License-Identifier: GPL-3.0-or-later /// SPDX-FileCopyrightText: 2025 Jonas Smedegaard #define DEVICE_NAME "Current second is below 50" void setup() { Serial.begin(115200); Serial.println(); Serial.println("Initializing..."); Serial.flush(); Serial.printf("Device ready: %s", DEVICE_NAME); } void loop() { // Get the current second (0-59) unsigned long currentTime = millis(); unsigned long totalSeconds = currentTime / 1000; unsigned long currentSecond = totalSeconds % 60; String msg = "good"; if (currentSecond >= 50) msg = "bad"; Serial.printf("*** NOTIFY: %s ***\n", msg); delay(2000); }