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

Dependencies:   mbed

MaxbotixLV.h

Committer:
kaushalpkk
Date:
2011-07-14
Revision:
0:2c68f41f803d

File content as of revision 0:2c68f41f803d:

#ifndef MBED_MAXBOT_H
#define MBED_MAXBOT_H

#include "mbed.h"

class MaxbotixLV{
public:
    MaxbotixLV(PinName analogIN);
    void setVoltage(float voltIn);
    void setScale(float scaler);
    float getAnalog();
    float getInches();
    
protected:
    AnalogIn _analogIn;
    float _voltIn;
    float _scaler;
};

#endif