Exploring BeagleBone
V1.0
|
An extremely basic Servo class stub – does nothing more than the PWM class but is here for future use. More...
#include <Servo.h>
Public Member Functions | |
Servo (string pinName) | |
virtual | ~Servo () |
Public Member Functions inherited from exploringBB::PWM | |
PWM (string pinName) | |
virtual int | setPeriod (unsigned int period_ns) |
virtual unsigned int | getPeriod () |
virtual int | setFrequency (float frequency_hz) |
virtual float | getFrequency () |
virtual int | setDutyCycle (unsigned int duration_ns) |
virtual int | setDutyCycle (float percentage) |
virtual unsigned int | getDutyCycle () |
virtual float | getDutyCyclePercent () |
virtual int | setPolarity (PWM::POLARITY) |
virtual void | invertPolarity () |
virtual PWM::POLARITY | getPolarity () |
virtual void | setAnalogFrequency (float frequency_hz) |
virtual int | calibrateAnalogMax (float analogMax) |
virtual int | analogWrite (float voltage) |
virtual int | run () |
virtual bool | isRunning () |
virtual int | stop () |
virtual | ~PWM () |
Additional Inherited Members | |
Public Types inherited from exploringBB::PWM | |
enum | POLARITY { ACTIVE_LOW =0, ACTIVE_HIGH =1 } |
An extremely basic Servo class stub – does nothing more than the PWM class but is here for future use.
exploringBB::Servo::Servo | ( | string | pinName | ) |