mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 13:10:52 +00:00
ESP-NOW Transmitter
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
@@ -33,8 +33,8 @@ int convert_axis_to_pwm(int axis_value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void get_joystick_xy_axis(int *x_axis, int *y_axis) {
|
void get_joystick_xy_axis(int *x_axis, int *y_axis) {
|
||||||
ESP_ERROR_CHECK(adc_oneshot_read(adc_xy_handle, ADC1_CHANNEL_0, x_axis));
|
ESP_ERROR_CHECK(adc_oneshot_read(adc_xy_handle, ADC_CHANNEL_0, x_axis));
|
||||||
ESP_ERROR_CHECK(adc_oneshot_read(adc_xy_handle, ADC1_CHANNEL_1, y_axis));
|
ESP_ERROR_CHECK(adc_oneshot_read(adc_xy_handle, ADC_CHANNEL_1, y_axis));
|
||||||
}
|
}
|
||||||
|
|
||||||
void sendRawData(void) {
|
void sendRawData(void) {
|
||||||
|
@@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
static int x, y; // Joystick x and y positions
|
static int x, y; // Joystick x and y positions
|
||||||
adc_oneshot_unit_handle_t adc_xy_handle;
|
adc_oneshot_unit_handle_t adc_xy_handle;
|
||||||
//extern sensors_data_t buffer;
|
sensors_data_t buffer;
|
||||||
|
|
||||||
int convert_axis_to_pwm(int axis_value);
|
int convert_axis_to_pwm(int axis_value);
|
||||||
void get_joystick_xy_axis(int *x_axis, int *y_axis);
|
void get_joystick_xy_axis(int *x_axis, int *y_axis);
|
||||||
|
Reference in New Issue
Block a user