Finish display impl, write UI widget, refactor

This commit is contained in:
maddiebaka
2025-12-31 11:56:54 -05:00
parent 7556496158
commit f02d138ffa
8 changed files with 368 additions and 199 deletions
+23
View File
@@ -0,0 +1,23 @@
#pragma once
#include <inttypes.h>
#if CONFIG_IDF_TARGET_ESP32H2
#define DSHOT_ESC_RESOLUTION_HZ 32000000 // 32MHz resolution, DSHot protocol needs a relative high resolution
#else
#define DSHOT_ESC_RESOLUTION_HZ 40000000 // 40MHz resolution, DSHot protocol needs a relative high resolution
#endif
#define ESC_UART_NUM UART_NUM_2
void init_rmt_esc_tx(void);
void send_dshot_packet(void);
void parse_telemetry(void);
void init_motor(void);
uint16_t get_throttle(void);
void update_throttle(uint16_t throttle);