aboutsummaryrefslogtreecommitdiff
path: root/Mussel/examples/voting
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-04-18 01:24:05 +0200
committerJonas Smedegaard <dr@jones.dk>2025-04-18 01:24:05 +0200
commit6ca4ff06867aa5d7354615c828bd83234d827ff2 (patch)
tree6a42f307f09e05491f8e1eb9bf157e13916dad8d /Mussel/examples/voting
parentea3988c911b467cbabe38cb9c3e6d0013b53965d (diff)
rop Mussel library; move Arduino sketches below Arduino/
Diffstat (limited to 'Mussel/examples/voting')
-rw-r--r--Mussel/examples/voting/voting.ino23
-rw-r--r--Mussel/examples/voting/voting.puml15
2 files changed, 0 insertions, 38 deletions
diff --git a/Mussel/examples/voting/voting.ino b/Mussel/examples/voting/voting.ino
deleted file mode 100644
index db4364d..0000000
--- a/Mussel/examples/voting/voting.ino
+++ /dev/null
@@ -1,23 +0,0 @@
-#include <Mussel.h>
-
-// instantiate for vote handling
-Mussel mussel(10);
-
-void setup() {
- Serial.begin(115200);
- mussel.begin();
-
- Serial.printf("\n\nDevice ready: %s\n",
- mussel.desc().c_str());
-}
-
-void loop() {
-
- // Inject sample data
- mussel.push("A1", millis(), random(90));
- mussel.push("B2", millis(), random(90));
- mussel.push("C3", millis(), random(90));
- mussel.printStack();
-
- delay(1000);
-}
diff --git a/Mussel/examples/voting/voting.puml b/Mussel/examples/voting/voting.puml
deleted file mode 100644
index 8460d90..0000000
--- a/Mussel/examples/voting/voting.puml
+++ /dev/null
@@ -1,15 +0,0 @@
-@startuml
-'start
-:instantiate object;
-group init
-:activate object;
-end group
-while (each ½s)
-group loop {
-:register 3 fake votes;
-:fetch and print voting tally;
-end group
-endwhile
--[hidden]->
-kill
-@enduml