the MaxbotixLV sonar sensor interface software for analog. i2c and pwm will be added later.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MaxbotixLV.h Source File

MaxbotixLV.h

00001 #ifndef MBED_MAXBOT_H
00002 #define MBED_MAXBOT_H
00003 
00004 #include "mbed.h"
00005 
00006 class MaxbotixLV{
00007 public:
00008     MaxbotixLV(PinName analogIN);
00009     void setVoltage(float voltIn);
00010     void setScale(float scaler);
00011     float getAnalog();
00012     float getInches();
00013     
00014 protected:
00015     AnalogIn _analogIn;
00016     float _voltIn;
00017     float _scaler;
00018 };
00019 
00020 #endif