Tiny C program to loop a Micro Servo SG 90 from 0 to 180 degrees and back. Requires servoblaster.
#include #include
#include
#define SERVOBLASTER_DEVICE_PATH “/dev/servoblaster” #define SERVOBLASTER_PIN 2 #define MIN 60 #define MAX 250
#define STEP_INTERVAL_MILLISECONDS 960