Fix Arduino PIN counts

This commit is contained in:
me-no-dev
2020-10-14 21:09:15 +03:00
parent cf93d473fb
commit 9a37a020d2
2 changed files with 16 additions and 8 deletions

View File

@ -28,14 +28,12 @@
#include "esp32/rom/ets_sys.h"
#include "esp32/rom/gpio.h"
#include "esp_intr_alloc.h"
#define NUM_OUPUT_PINS 34
#define GPIO_FUNC 2
#elif CONFIG_IDF_TARGET_ESP32S2
#include "esp32s2/rom/ets_sys.h"
#include "esp32s2/rom/gpio.h"
#include "esp_intr_alloc.h"
#include "soc/periph_defs.h"
#define NUM_OUPUT_PINS 45
#define GPIO_FUNC 1
#else
#error Target CONFIG_IDF_TARGET is not supported