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.

28 lines
452 B

3 years ago
  1. #ifndef _EXPRESSFC_H
  2. #define _EXPRESSFC_H
  3. #include "Motors.h"
  4. #include "dshot.h"
  5. // Pin Definitions
  6. #define MOTOR1 13
  7. #define MOTOR2 12
  8. #define MOTOR3 14
  9. #define MOTOR4 27
  10. #define LED_BUILTIN 4
  11. // Task scheduler
  12. #if CONFIG_FREERTOS_UNICORE
  13. #define ARDUINO_RUNNING_CORE 0
  14. #else
  15. #define ARDUINO_RUNNING_CORE 1
  16. #endif
  17. extern uint32_t last_dshot;
  18. // Task Definition
  19. void taskMotor(void *pvParameters);
  20. void taskBlink(void *pvParameters);
  21. #endif