Firmware to drive ESP32 based FC with built-in: Gyro Baro Current Sensor Voltage reading OSD NRF24L01+ 4x ESC backplane
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

#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