Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: MaxbotixLV.h
- Revision:
- 0:2c68f41f803d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/MaxbotixLV.h Thu Jul 14 23:44:15 2011 +0000
@@ -0,0 +1,20 @@
+#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
\ No newline at end of file