diff options
| author | abel <abeltimm@protonmail.com> | 2022-12-08 14:34:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-08 14:34:31 +0100 |
| commit | 09fe3b3cbbea9b1a512280c9e9559d5d2cb7c085 (patch) | |
| tree | 5123f080a94976b1deced418c70445188d4fe4c8 | |
| parent | 0cee1ef15feaca3342ed21fc50a03b8997de01cb (diff) | |
| download | robotica-09fe3b3cbbea9b1a512280c9e9559d5d2cb7c085.tar.gz robotica-09fe3b3cbbea9b1a512280c9e9559d5d2cb7c085.zip | |
fouths
| -rw-r--r-- | arduino.ino | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/arduino.ino b/arduino.ino index f1fd6c1..8ef20c7 100644 --- a/arduino.ino +++ b/arduino.ino @@ -3,6 +3,24 @@ int fullspeed() { digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) delay(80); // wait for a second } +int treefourspeed() { + digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) + delay(10); // wait for a second + digitalWrite(LED_BUILTIN, HIGH); // turn the LED off by making the voltage LOW + delay(10); // wait for a second + 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); + digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) + delay(10); // wait for a second + digitalWrite(LED_BUILTIN, HIGH); // turn the LED off by making the voltage LOW + delay(10); + 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); +} int halfspeed() { digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) delay(10); // wait for a second @@ -21,6 +39,24 @@ int halfspeed() { digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(10); } +int onefourspeed() { + digitalWrite(LED_BUILTIN, LOW); // 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); // wait for a second + digitalWrite(LED_BUILTIN, LOW); // turn the LED on (HIGH is the voltage level) + delay(10); // wait for a second + digitalWrite(LED_BUILTIN, HIGH); // turn the LED off by making the voltage LOW + delay(10); + digitalWrite(LED_BUILTIN, LOW); // 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); + digitalWrite(LED_BUILTIN, LOW); // turn the LED on (HIGH is the voltage level) + delay(10); // wait for a second + digitalWrite(LED_BUILTIN, HIGH); // turn the LED off by making the voltage LOW + delay(10); +} int nospeed() { digitalWrite(LED_BUILTIN, LOW); // turn the LED on (HIGH is the voltage level) delay(80); // wait for a second |
