You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
356 B
16 lines
356 B
#ifndef _MOTOR_H
|
|
#define _MOTOR_H
|
|
|
|
#include "Arduino.h"
|
|
|
|
class Motors {
|
|
public:
|
|
Motors(uint8_t motor1_pin, uint8_t motor2_pin, uint8_t motor3_pin, uint8_t motor4_pin);
|
|
void initialize(void);
|
|
void write_motor(uint8_t id, uint16_t val);
|
|
|
|
private:
|
|
uint8_t _motor1_pin, _motor2_pin, _motor3_pin, _motor4_pin;
|
|
};
|
|
|
|
#endif
|