Matthew Gasper
/
Synergy
Combination of Stepper Motors and Encoders
Diff: encoder.h
- Revision:
- 0:67b964961693
diff -r 000000000000 -r 67b964961693 encoder.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/encoder.h Sun Mar 07 20:13:02 2021 +0000 @@ -0,0 +1,12 @@ +#include <mbed.h> +#define resolution = 12 +/* +class Encoder{ + private: + char address[1] = {0x00}; + uint16_t position = 0; + public: + Encoder(char _address){} + void updatePosition(Serial* serialPort); + uint16_t getPosistion(); +} */ \ No newline at end of file