From 0cee1ef15feaca3342ed21fc50a03b8997de01cb Mon Sep 17 00:00:00 2001 From: abel Date: Thu, 8 Dec 2022 14:33:09 +0100 Subject: full half or no --- arduino.ino | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/arduino.ino b/arduino.ino index 80b83ab..f1fd6c1 100644 --- a/arduino.ino +++ b/arduino.ino @@ -1,11 +1,9 @@ -// the setup function runs once when you press reset or power the board -void setup() { - // initialize digital pin LED_BUILTIN as an output. - pinMode(LED_BUILTIN, OUTPUT); -} -// the loop function runs over and over again forever -void loop() { +int fullspeed() { + digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) + delay(80); // wait for a second +} +int halfspeed() { digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) delay(10); // wait for a second digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW @@ -21,5 +19,21 @@ void loop() { digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) delay(10); // wait for a second digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW - delay(10); + delay(10); +} +int nospeed() { + digitalWrite(LED_BUILTIN, LOW); // turn the LED on (HIGH is the voltage level) + delay(80); // wait for a second +} + + + +void setup() { + // initialize digital pin LED_BUILTIN as an output. + pinMode(LED_BUILTIN, OUTPUT); +} + +// the loop function runs over and over again forever +void loop() { + } -- cgit v1.2.3