mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-11-05 11:41:36 +00:00
RC
This commit is contained in:
0
ESP-IDF_Robot_RC/build/.ninja_lock
Normal file
0
ESP-IDF_Robot_RC/build/.ninja_lock
Normal file
@@ -1 +1 @@
|
|||||||
bce3a876e44a0c32da9b6fd9a9a5a6c0b474ffdb
|
942e8408ef782455e6f99a68efccfb4c3e091c0a
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ static esp_err_t joystick_adc_init() {
|
|||||||
|
|
||||||
static void joystick_get_raw_xy() {
|
static void joystick_get_raw_xy() {
|
||||||
|
|
||||||
ESP_ERROR_CHECK(adc_oneshot_read(adc1_x_handle, ADC1_CHANNEL_0, &x));
|
ESP_ERROR_CHECK(adc_oneshot_read(adc1_x_handle, ADC1_CHANNEL_0, x));
|
||||||
ESP_ERROR_CHECK(adc_oneshot_read(adc1_y_handle, ADC1_CHANNEL_1, &y));
|
ESP_ERROR_CHECK(adc_oneshot_read(adc1_y_handle, ADC1_CHANNEL_1, y));
|
||||||
|
|
||||||
ESP_LOGI("(x,y)", "( %d, %d)", x, y);
|
ESP_LOGI("(x,y)", "( %d, %d)", x, y);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user