From 20d37eb1e6f40725307db5256d282439911ad903 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Tue, 30 Jan 2024 22:37:02 -0500 Subject: [PATCH] Add header file for a motor encoder class. --- ino/contact_printer/EncoderMotor.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ino/contact_printer/EncoderMotor.h diff --git a/ino/contact_printer/EncoderMotor.h b/ino/contact_printer/EncoderMotor.h new file mode 100644 index 0000000..8b77c11 --- /dev/null +++ b/ino/contact_printer/EncoderMotor.h @@ -0,0 +1,21 @@ +#ifndef ENCODER_MOTOR +#define ENCODER_MOTOR + +#include + +class EncoderMotor { + + private: + uint8_t enable_pin; + uint8_t forward_pin; + uint8_t backward_pin; + uint8_t pwm_duty_speed = 255; + uint32_t pwm_frequency = 30000; + + public: + + EncoderMotor(); + +}; + +#endif \ No newline at end of file