mit pathdingsbums
Dependencies: mbed
Fork of MicroMouse_MASTER_TWO by
Diff: EncoderCounter.h
- Revision:
- 1:d9e840c48b1e
- Parent:
- 0:a9fe4ef404bf
--- a/EncoderCounter.h Wed Mar 07 14:06:19 2018 +0000 +++ b/EncoderCounter.h Sat Mar 31 16:45:57 2018 +0000 @@ -14,20 +14,21 @@ * This class implements a driver to read the quadrature * encoder counter of the STM32 microcontroller. */ -class EncoderCounter { - - public: - - EncoderCounter(PinName a, PinName b); - virtual ~EncoderCounter(); - void reset(); - void reset(short offset); - short read(); - operator short(); - - private: - - TIM_TypeDef* TIM; +class EncoderCounter +{ + +public: + + EncoderCounter(PinName a, PinName b); + virtual ~EncoderCounter(); + void reset(); + void reset(short offset); + short read(); + operator short(); + +private: + + TIM_TypeDef* TIM; }; #endif /* ENCODER_COUNTER_H_ */ \ No newline at end of file