Exploring BeagleBone  V1.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Servo.h
Go to the documentation of this file.
1 /*
2  * Servo.h Created on: 12 May 2014
3  * Copyright (c) 2014 Derek Molloy (www.derekmolloy.ie)
4  * Made available for the book "Exploring BeagleBone"
5  * See: www.exploringbeaglebone.com
6  * Licensed under the EUPL V.1.1
7  *
8  * This Software is provided to You under the terms of the European
9  * Union Public License (the "EUPL") version 1.1 as published by the
10  * European Union. Any use of this Software, other than as authorized
11  * under this License is strictly prohibited (to the extent such use
12  * is covered by a right of the copyright holder of this Software).
13  *
14  * This Software is provided under the License on an "AS IS" basis and
15  * without warranties of any kind concerning the Software, including
16  * without limitation merchantability, fitness for a particular purpose,
17  * absence of defects or errors, accuracy, and non-infringement of
18  * intellectual property rights other than copyright. This disclaimer
19  * of warranty is an essential part of the License and a condition for
20  * the grant of any rights to this Software.
21  *
22  * For more details, see http://www.derekmolloy.ie/
23  */
24 
25 #ifndef SERVO_H_
26 #define SERVO_H_
27 #include<string>
28 #include "../gpio/PWM.h"
29 using std::string;
30 
31 namespace exploringBB {
32 
38 class Servo: public PWM {
39 public:
40  Servo(string pinName);
41  virtual ~Servo();
42 };
43 
44 } /* namespace exploringBB */
45 
46 #endif /* SERVO_H_ */
A class to control a basic PWM output – you must know the exact sysfs filename for the PWM output...
Definition: PWM.h:43
Servo(string pinName)
Definition: Servo.cpp:29
virtual ~Servo()
Definition: Servo.cpp:35
Definition: BusDevice.cpp:27
An extremely basic Servo class stub – does nothing more than the PWM class but is here for future us...
Definition: Servo.h:38