Add header file for a motor encoder class.

This commit is contained in:
Matt McWilliams 2024-01-30 22:37:02 -05:00
parent a9944f5a47
commit 20d37eb1e6
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
#ifndef ENCODER_MOTOR
#define ENCODER_MOTOR
#include <Arduino.h>
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