ESP-NOW Transmitter comments

This commit is contained in:
2025-06-17 14:30:02 -04:00
parent 6b2564c475
commit 4dfeb0aa3a
3 changed files with 4 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
#include "driver/adc.h"
#include "esp_adc/adc_oneshot.h"
#include "config.h"
static esp_err_t joystick_adc_init() {

View File

@@ -22,8 +22,8 @@ typedef struct {
static sensors_data_t buffer;
static esp_err_t joystick_adc_init(void)
{
static esp_err_t joystick_adc_init(void);
/*{
adc_oneshot_unit_init_cfg_t adc_init_config_xy = {
.unit_id = ADC_UNIT_1,
.ulp_mode = ADC_ULP_MODE_DISABLE,
@@ -42,7 +42,7 @@ static esp_err_t joystick_adc_init(void)
ESP_ERROR_CHECK(adc_oneshot_config_channel(adc_xy_handle, ADC1_CHANNEL_1, &config_y));
return ESP_OK;
}
}*/
static void joystick_show_raw_xy() {
ESP_ERROR_CHECK(adc_oneshot_read(adc_xy_handle, ADC1_CHANNEL_0, &x));