aboutsummaryrefslogtreecommitdiff
path: root/mussel2
diff options
context:
space:
mode:
Diffstat (limited to 'mussel2')
-rw-r--r--mussel2/mussel2.ino25
-rw-r--r--mussel2/mussel2.puml20
2 files changed, 0 insertions, 45 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;
-}
diff --git a/mussel2/mussel2.puml b/mussel2/mussel2.puml
deleted file mode 100644
index 115d505..0000000
--- a/mussel2/mussel2.puml
+++ /dev/null
@@ -1,20 +0,0 @@
-@startuml
-start
-partition init {
-:setup serial connection;
-:print "ready";
-}
-while (repeat every few millisecond)
-partition loop {
-:resolve currentSecond;
-if (currentSecond mod 12 < 9 ?) equals (yes) then
-:print "good";
-else (no)
-:print "bad";
-endif
-:wait 1s;
-}
-endwhile
--[hidden]->
-kill
-@enduml