summaryrefslogtreecommitdiff
path: root/arduino.ino
diff options
context:
space:
mode:
authorAbel Tim <abel@main.home>2024-06-22 09:17:50 +0200
committerAbel Tim <abel@main.home>2024-06-22 09:17:50 +0200
commit4971e86d05c714ff3630ada8851938614128b412 (patch)
tree35a40d4213bd8bcb47da35ef7a477ae37b28cf05 /arduino.ino
parentbec80cbf5f05e2faeeda15b7a8b372d1a3f8e465 (diff)
downloadrobotica-4971e86d05c714ff3630ada8851938614128b412.tar.gz
robotica-4971e86d05c714ff3630ada8851938614128b412.zip
update repo structure
update poster add code flowchart
Diffstat (limited to 'arduino.ino')
-rw-r--r--arduino.ino164
1 files changed, 0 insertions, 164 deletions
diff --git a/arduino.ino b/arduino.ino
deleted file mode 100644
index 8992f3a..0000000
--- a/arduino.ino
+++ /dev/null
@@ -1,164 +0,0 @@
-int fullspeed() {
- digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
- delay(80); // wait for a second
-}
-int seveneightspeed() {
- 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, 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, 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 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 fiveeightspeed() {
- 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); // 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
- digitalWrite(LED_BUILTIN, LOW); // 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, 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, LOW); // turn the LED off by making the voltage LOW
- delay(10);
-}
-int threeeightspeed() {
- 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); // 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, 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);
-}
-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 oneeightspeed() {
- 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, 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, 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
-}
-
-int forward(){
- digitalWrite(12, HIGH);
- digitalWrite(11, HIGH);
-}
-int left(){
- digitalWrite(12, LOW);
- digitalWrite(11, HIGH);
-}
-int left(){
- digitalWrite(12, HIGH);
- digitalWrite(11, LOW);
-}
-int back(){
- digitalWrite(12, LOW);
- digitalWrite(11, LOW);
-}
-
-
-void setup() {
- // initialize digital pin LED_BUILTIN as an output.
- pinMode(LED_BUILTIN, OUTPUT);
- pinMode(12, OUTPUT); //left
- pinMode(11, OUTPUT); //richt
-}
-
-// the loop function runs over and over again forever
-void loop() {
-
-}