Interface class for the Max Botix ultrasonic range finder model 1210. It includes input methods for PWM, Analog, and Serial. A PwmIn class was created to allow the PWM input to be read. Now includes automatic range update via interrupts.

Dependencies:   mbed

Revision:
2:997b4057c879
Parent:
1:b533b95e807a
Child:
3:05183e50a923
--- a/MB1210.h	Mon Aug 23 01:12:57 2010 +0000
+++ b/MB1210.h	Mon Aug 23 07:11:10 2010 +0000
@@ -1,3 +1,8 @@
+//mbed Microcontroller Library
+//Max Botix Ultrasonic Range Finder MB1210 Interface
+//Copyright 2010
+//Thomas Hamilton
+
 #ifndef MB1210Library
 #define MB1210Library
 
@@ -11,13 +16,13 @@
         AnalogIn* AnalogInput;
         DigitalOut* SerialOutput;
         Serial* SerialInput;
-        
+
         char OperatingMode;
         float UnitFactor;
         float PwmScalingFactor;
         float AnalogScalingFactor;
         unsigned short Range;
-        
+
     public:
         MB1210(PinName pw, PinName an, PinName tx, PinName rx);
             //pulse width modulation input, analog input, serial output, serial input;