Update Lanbon for Arduino v1 and v2

This commit is contained in:
fvanroie 2022-02-24 16:41:43 +01:00
parent 44355f24b9
commit 817843558b

View File

@ -9,10 +9,12 @@
#include "dev/esp32/esp32.h"
#include "driver/pcnt.h" // Pulse count driver
#if ESP_ARDUINO_VERSION_MAJOR >= 2
#include "hal/pcnt_hal.h"
#include "hal/gpio_hal.h"
#include "soc/pcnt_periph.h"
#include "esp_rom_gpio.h"
#endif
#include "driver/adc.h"
#include "esp_adc_cal.h"