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

3 years ago
  1. #ifndef _MOTOR_H
  2. #define _MOTOR_H
  3. #include "Arduino.h"
  4. class Motors {
  5. public:
  6. Motors(uint8_t motor1_pin, uint8_t motor2_pin, uint8_t motor3_pin, uint8_t motor4_pin);
  7. void initialize(void);
  8. void write_motor(uint8_t id, uint16_t val);
  9. private:
  10. uint8_t _motor1_pin, _motor2_pin, _motor3_pin, _motor4_pin;
  11. };
  12. #endif