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 /mussel6 | |
parent | aaf35ec4d317224b6fa9a226479f0d56fc266eb0 (diff) |
add library as appendix; add diagrams to library; drop individual mussel sketches
Diffstat (limited to 'mussel6')
-rw-r--r-- | mussel6/mussel6.ino | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/mussel6/mussel6.ino b/mussel6/mussel6.ino deleted file mode 100644 index 0886a4a..0000000 --- a/mussel6/mussel6.ino +++ /dev/null @@ -1,27 +0,0 @@ -const int ledPin = 13; // LED connected to digital pin 13 - -void setup() { - pinMode(ledPin, OUTPUT); - Serial.begin(9600); - Serial.println("Enter 'ON' to turn the LED on, or 'OFF' to turn it off."); -} - -void loop() { - if (Serial.available() > 0) { - String command = Serial.readStringUntil('\n'); - command.trim(); - - if (command.equalsIgnoreCase("ON")) { - digitalWrite(ledPin, HIGH); - Serial.println("LED is now ON."); - } - else if (command.equalsIgnoreCase("OFF")) { - digitalWrite(ledPin, LOW); - Serial.println("LED is now OFF."); - } - else { - Serial.println("Invalid command. Please type 'ON' or 'OFF'."); - } - } -} - |