blah

Dependencies:   mbed

Fork of Potentiometer(library) by yuki sato

encorder.h

Committer:
tamashy
Date:
2016-10-06
Revision:
1:de45b02a80fc
Parent:
0:ccb4d79a2cf7

File content as of revision 1:de45b02a80fc:

#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