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.
Diff: PwmIn/PwmIn.h
- Revision:
- 2:997b4057c879
- Parent:
- 0:3d969e0b4ca0
--- a/PwmIn/PwmIn.h Mon Aug 23 01:12:57 2010 +0000 +++ b/PwmIn/PwmIn.h Mon Aug 23 07:11:10 2010 +0000 @@ -1,3 +1,8 @@ +//mbed Microcontroller Library +//Pulse Width Modulation Input Interface +//Copyright 2010 +//Thomas Hamilton + #ifndef PwmInLibrary #define PwmInLibrary @@ -12,7 +17,7 @@ void PulseStart(); void PulseStop(); - + public: PwmIn(PinName pwi); float read();