![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Totale Testversion
Dependencies: mbed
Fork of DrehungMitStopp by
MotorEncoder.h
- Committer:
- EHess
- Date:
- 2017-05-10
- Revision:
- 1:d40ff07e2fe0
File content as of revision 1:d40ff07e2fe0:
#ifndef MOTOR_ENCODER_H #define MOTOR_ENCODER_H #include <cstdlib> #include <mbed.h> //E. Hess //MotorEncoder.h class MotorEncoder { public: MotorEncoder(PinName a, PinName b); virtual ~MotorEncoder(); void reset(); void reset(short offset); short read(); operator short(); private: TIM_TypeDef* TIM; }; #endif