temp sensor

This commit is contained in:
2025-06-24 03:31:28 -04:00
parent 36e5eb6cb5
commit 29b2ce31ce
6 changed files with 8 additions and 8 deletions

View File

@@ -1 +1 @@
ref: refs/heads/main
4c2820d377d1375e787bcef612f0c32c1427d183

View File

@@ -18,7 +18,7 @@ set(HEAD_HASH)
file(READ "/home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter/build/CMakeFiles/git-data/HEAD" HEAD_CONTENTS LIMIT 1024)
string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS)
set(GIT_DIR "/home/abobkov/MyProjects/ESP-Nodes/.git")
set(GIT_DIR "/home/abobkov/esp/v5.4.1/esp-idf/.git")
# handle git-worktree
if(EXISTS "${GIT_DIR}/commondir")
file(READ "${GIT_DIR}/commondir" GIT_DIR_NEW LIMIT 1024)

View File

@@ -1 +1 @@
a2c5f32383aeefb1e2073dde968eb69121ee6b4f
4c2820d377d1375e787bcef612f0c32c1427d183

View File

@@ -41,14 +41,14 @@ static esp_err_t joystick_adc_init(void)
return ESP_OK;
}
void joystick_show_raw_xy()
/*void joystick_show_raw_xy()
{
ESP_ERROR_CHECK(adc_oneshot_read(adc_xy_handle, ADC_CHANNEL_0, &x));
ESP_ERROR_CHECK(adc_oneshot_read(adc_xy_handle, ADC_CHANNEL_1, &y));
ESP_LOGI("(x,y)", "( %d, %d )", x, y);
}
}*/
void get_joystick_xy(int *x_axis, int *y_axis)
static void get_joystick_xy(int *x_axis, int *y_axis)
{
ESP_ERROR_CHECK(adc_oneshot_read(adc_xy_handle, ADC_CHANNEL_0, x_axis));
ESP_ERROR_CHECK(adc_oneshot_read(adc_xy_handle, ADC_CHANNEL_1, y_axis));

View File

@@ -15,8 +15,8 @@ static void sendData (void);
static void get_joystick_xy(int *x_axis, int *y_axis);
static void deletePeer (void);
esp_err_t joystick_adc_init(void);
void joystick_show_raw_xy();
static esp_err_t joystick_adc_init(void);
//void joystick_show_raw_xy();