#include "myServo_Custom.h"
// Budujemy Malucha
Servo Maluch;
void setup() {
// Startujemy Malucha
Maluch.attach(4);
}
void loop() {
for(uint8_t i=0; i<91; i++)
{
// Obracamy Malucha o 180 stopni
Maluch.move(i);
delay(2);
}
delay(1000);
for(uint8_t i=91; i<180; i++)
{
// Obracamy Malucha o 180 stopni
Maluch.move(i);
delay(2);
}
delay(1000);
}