Meika Sugimoto / flex_sensor

Dependents:   gloveSensorSend RoboticHand

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers flex_sensor.h Source File

flex_sensor.h

00001 /* library header for flex sensor */
00002 
00003 #ifndef FLEX_SENSOR_H
00004 #define FLEX_SENSOR_H
00005 
00006 #include <mbed.h>
00007 
00008 class flex_sensor
00009 {
00010     public:
00011         /* Constructor & Destructor */
00012         flex_sensor( PinName pinno );
00013         ~flex_sensor();
00014         /* method */
00015         unsigned short get_raw_value( void );
00016         
00017     private:
00018         AnalogIn *analog_in;
00019 };
00020 
00021 #endif  /* FLEX_SENSOR_H */