diff options
author | Jonas Smedegaard <dr@jones.dk> | 2025-04-01 22:18:26 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2025-04-01 22:18:26 +0200 |
commit | 223894c7305a084130edfba75108c87b2c453691 (patch) | |
tree | 24c6110430cabc81c27584425e5fcca51c4e387b /mussel2/mussel2.ino | |
parent | aaf35ec4d317224b6fa9a226479f0d56fc266eb0 (diff) |
add library as appendix; add diagrams to library; drop individual mussel sketches
Diffstat (limited to 'mussel2/mussel2.ino')
-rw-r--r-- | mussel2/mussel2.ino | 25 |
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; -} |