Commit 203367b0 authored by Alex's avatar Alex
Browse files

unnötigen Code deaktiviert.

parent c2a0f1da
Pipeline #333 passed with stages
in 9 minutes and 48 seconds
......@@ -10,6 +10,7 @@ const int out2plus = 9; // IN 3
const int out2minus = 10; // IN 4
bool positiv = true;
int richtung = 1;
int pwmwert = 255;
unsigned long startMillis;
......@@ -36,6 +37,7 @@ void setup() {
}
void loop() {
if(positiv) {
analogWrite(out1minus, 0);
analogWrite(out2minus, 0);
......@@ -56,12 +58,28 @@ void loop() {
}
currentMillis = millis();
if (currentMillis - startMillis >= 50) {
/*if (currentMillis - startMillis >= 50) {
if(pwmwert == 240) {
richtung = -1;
pwmwert--;
} else {
pwmwert++;
}
// pwmwert++;
startMillis = currentMillis;
}
}} else if(pwmwert == 10) {
richtung = 1;
}
if(richtung == -1) {
pwmwert--;
} else {
pwmwert++;
}
// pwmwert++;
startMillis = currentMillis;
}*/
delay(20);
delay(5);
//delayMicroseconds(1);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment