mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 13:10:52 +00:00
temp sensor
This commit is contained in:
@@ -19,7 +19,7 @@ adc_oneshot_unit_handle_t adc_xy_handle;
|
|||||||
sensors_data_t buffer;
|
sensors_data_t buffer;
|
||||||
static int x, y; // Joystick x- and y- axis positions
|
static int x, y; // Joystick x- and y- axis positions
|
||||||
|
|
||||||
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,
|
||||||
|
Reference in New Issue
Block a user