farmbot-arduino-firmware/src/ServoControl.h

32 lines
489 B
C
Raw Normal View History

2014-11-04 15:14:35 -07:00
/*
* ServoControl.h
*
* Created on: 2014-11-01
* Author: Tim Evers
*/
#ifndef SERVOCONTROL_H_
#define SERVOCONTROL_H_
#include "Arduino.h"
#include "pins.h"
#include "Config.h"
#include <stdio.h>
#include <stdlib.h>
2017-04-19 08:12:12 -06:00
class ServoControl
{
2014-11-04 15:14:35 -07:00
public:
2017-04-19 08:12:12 -06:00
static ServoControl *getInstance();
int attach();
int setAngle(int pin, int angle);
2014-11-04 15:14:35 -07:00
private:
2017-04-19 08:12:12 -06:00
ServoControl();
ServoControl(ServoControl const &);
void operator=(ServoControl const &);
2014-11-04 15:14:35 -07:00
};
#endif /* SERVOCONTROL_H_ */