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.
Dependencies: mbed
Fork of DrehungMitStopp by
MotorEncoder.h
00001 #ifndef MOTOR_ENCODER_H 00002 #define MOTOR_ENCODER_H 00003 00004 #include <cstdlib> 00005 #include <mbed.h> 00006 00007 //E. Hess 00008 //MotorEncoder.h 00009 00010 class MotorEncoder { 00011 public: 00012 MotorEncoder(PinName a, PinName b); 00013 virtual ~MotorEncoder(); 00014 void reset(); 00015 void reset(short offset); 00016 short read(); 00017 operator short(); 00018 00019 private: 00020 TIM_TypeDef* TIM; 00021 }; 00022 00023 #endif
Generated on Sat Jul 30 2022 21:47:01 by
1.7.2
