I2CServo.h
- Committer:
- inst
- Date:
- 2015-07-02
- Revision:
- 0:d4e07340fb0e
- Child:
- 1:e06cf312e9f0
File content as of revision 0:d4e07340fb0e:
#ifndef INCLUDED_I2C_SERVO_H #define INCLUDED_I2C_SERVO_H #include "mbed.h" #include "I2CDevice.h" class I2CServo : public I2CDevice{ public: I2CServo( I2C* i2c, char address ); void setPosition( float p ){ setPosition( static_cast< unsigned short >( p * 1024 ) ); } void write(); void read(){} private: unsigned short mPosition; }; #endif