Mathias Lyngklip / SG90

Dependents:   RoboticHackathon

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SG90.h Source File

SG90.h

00001 #ifndef SG90_H
00002 #define SG90_H
00003 #include "mbed.h"
00004 #include "PwmOut.h"
00005 
00006 class servo {
00007     
00008 public:
00009 
00010 PwmOut pwm1, pwm2, pwm3, pwm4;
00011 servo();
00012 
00013 
00014 void init();
00015 void right(int);
00016 void left(int);
00017 void position(int, int);
00018 
00019 int s1, s2, s3, s4;
00020 
00021 
00022 
00023 };
00024 #endif