*******

encorder.h

Committer:
satoyuki1111
Date:
2016-08-15
Revision:
0:ccb4d79a2cf7

File content as of revision 0:ccb4d79a2cf7:

#ifndef MBED_ENCORDER_H
#define MBED_ENCORDER_H

#include "mbed.h"
class Potentiometer
{
    private:
    AnalogIn analog;
    int      Rotation;
    float    Value;
    
    public:
    Potentiometer(PinName analog_);
    float get_value();
    int   get_angle();
    int   get_Rotation();
    int   get_angle2();
}; 
#endif