support SBUS instead PWM

This commit is contained in:
2026-02-14 21:42:46 +01:00
parent 5cc2bd0b1d
commit 4ccfc5128b
3 changed files with 237 additions and 3 deletions

View File

@ -13,6 +13,7 @@
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "driver/gpio.h"
static const char *TAG = "CONTROL";
static uint8_t current_animation_mode = 0;
@ -64,6 +65,9 @@ esp_err_t control_init(void)
return ret;
}
// Start ISR service
ESP_ERROR_CHECK(gpio_install_isr_service(0));
// Initialize RC signal
ret = rcsignal_init(current_config.pwm_pin);
if (ret != ESP_OK)