From 5eef3105fe29b0dbf82abca25fbf1e12bb053737 Mon Sep 17 00:00:00 2001 From: tscherne Date: Wed, 24 Jan 2024 18:12:14 +0100 Subject: [PATCH] Dateien nach "/" hochladen --- arduino2.ino | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 arduino2.ino diff --git a/arduino2.ino b/arduino2.ino new file mode 100644 index 0000000..0ffd655 --- /dev/null +++ b/arduino2.ino @@ -0,0 +1,72 @@ +#include +#include +#define LED 13 + +#define PIN_OFFSET 2 //At which pin is the first connection, must be in row +#define SERVO_NUM 7 + +int servoPos[SERVO_NUM] = {0}; +Servo ser[SERVO_NUM]; + +void setup() { + //start serial connection + Serial.begin(9600); + pinMode(LED, OUTPUT); + + for(int i = 0;i