fixed weird servo behaviour

main
HollowPurity 2023-07-19 14:43:27 +02:00
parent c7de871279
commit b4f1487d15
1 changed files with 9 additions and 4 deletions

View File

@ -29,14 +29,19 @@ void setup() {
void loop() {
if (istTasterGedrueckt(D2)) {
linkeAugenbraue.write(90);
rechteAugenbraue.write(90);
for(int i = 0; i<= 90; i++){
rechteAugenbraue.write(i);
linkeAugenbraue.write(i);
}
Serial.println("Vorwärts");
debug();
}
if (istTasterGedrueckt(D3)) {
linkeAugenbraue.write(0);
rechteAugenbraue.write(0);
for(int i = 90; i>= 0; i--){
rechteAugenbraue.write(i);
linkeAugenbraue.write(i);
}
Serial.println("Rückwärts");
debug();
}