example_config.h 602 B

12345678910111213141516
  1. /*
  2. * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Unlicense OR CC0-1.0
  5. */
  6. #pragma once
  7. /* Ints are used here to be able to include the file in assembly as well */
  8. #define EXAMPLE_ADC_CHANNEL 6 // ADC_CHANNEL_6, GPIO34 on ESP32, GPIO7 on ESP32-S3
  9. #define EXAMPLE_ADC_UNIT 0 // ADC_UNIT_1
  10. #define EXAMPLE_ADC_ATTEN 3 // ADC_ATTEN_DB_11
  11. #define EXAMPLE_ADC_WIDTH 0 // ADC_BITWIDTH_DEFAULT
  12. /* Set low and high thresholds, approx. 1.35V - 1.75V*/
  13. #define EXAMPLE_ADC_LOW_TRESHOLD 1500
  14. #define EXAMPLE_ADC_HIGH_TRESHOLD 2000