asdf
Dependencies: Servo mbed mbedConnectorInterface mbedEndpointNetwork
Fork of TempAndDistTest by
resource/ServoResource.h
- Committer:
- mnorris
- Date:
- 2015-05-09
- Revision:
- 3:c17adf68862b
- Child:
- 4:20feba0e781b
File content as of revision 3:c17adf68862b:
#ifndef SERVO_RESOURCE_H #define SERVO_RESOURCE_H #include "DynamicResource.h" #include "Servo.h" class ServoResource : public DynamicResource { public: ServoResource(const Logger *logger, const char *name, Servo *servo, const bool observable = false) : DynamicResource(logger, name, "ServoResource", SN_GRS_GET_ALLOWED, observable), servo(servo) {} void on(); void off(); virtual string get(); private: Servo *servo; }; #endif