mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-23 05:20:27 +00:00
ESP-NOW Transmitter comments
This commit is contained in:
0
ESP32-IDF_ESPNOW-Transmitter/build/.ninja_lock
Normal file
0
ESP32-IDF_ESPNOW-Transmitter/build/.ninja_lock
Normal file
@@ -1,5 +1,6 @@
|
|||||||
#include "driver/adc.h"
|
#include "driver/adc.h"
|
||||||
#include "esp_adc/adc_oneshot.h"
|
#include "esp_adc/adc_oneshot.h"
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
static esp_err_t joystick_adc_init() {
|
static esp_err_t joystick_adc_init() {
|
||||||
|
@@ -22,8 +22,8 @@ typedef struct {
|
|||||||
|
|
||||||
static sensors_data_t buffer;
|
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 = {
|
adc_oneshot_unit_init_cfg_t adc_init_config_xy = {
|
||||||
.unit_id = ADC_UNIT_1,
|
.unit_id = ADC_UNIT_1,
|
||||||
.ulp_mode = ADC_ULP_MODE_DISABLE,
|
.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));
|
ESP_ERROR_CHECK(adc_oneshot_config_channel(adc_xy_handle, ADC1_CHANNEL_1, &config_y));
|
||||||
|
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
static void joystick_show_raw_xy() {
|
static void joystick_show_raw_xy() {
|
||||||
ESP_ERROR_CHECK(adc_oneshot_read(adc_xy_handle, ADC1_CHANNEL_0, &x));
|
ESP_ERROR_CHECK(adc_oneshot_read(adc_xy_handle, ADC1_CHANNEL_0, &x));
|
||||||
|
Reference in New Issue
Block a user