aboutsummaryrefslogtreecommitdiff
path: root/mussel2/mussel2.ino
diff options
context:
space:
mode:
Diffstat (limited to 'mussel2/mussel2.ino')
-rw-r--r--mussel2/mussel2.ino25
1 files changed, 0 insertions, 25 deletions
diff --git a/mussel2/mussel2.ino b/mussel2/mussel2.ino
deleted file mode 100644
index 90d8a47..0000000
--- a/mussel2/mussel2.ino
+++ /dev/null
@@ -1,25 +0,0 @@
-/// mussel2 - mussel voter influenced by time
-///
-/// SPDX-License-Identifier: GPL-3.0-or-later
-/// SPDX-FileCopyrightText: 2025 Jonas Smedegaard <dr@jones.dk>
-
-#define MUSSEL_ATTITUDE "closed 4 seconds every 8 seconds"
-
-void setup() {
- Serial.begin(115200);
- Serial.printf("\n\nDevice ready: %s\n",
- MUSSEL_ATTITUDE);
-}
-
-void loop() {
- Serial.printf("gap:%d\n", read());
-
- delay(1000);
-}
-
-byte read() {
- // return 42 if current second modulo 12 is below 9, else 2
- return (byte) (((unsigned long)millis() / 1000) % 12) < 9
- ? 42
- : 2;
-}