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();
|
2019-02-07 16:22:36 -07:00
|
|
|
void detachServos();
|
2017-04-19 08:12:12 -06:00
|
|
|
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_ */
|