Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes digitalPinToTouchChannel() for ESP32-S3
  • Loading branch information
SuGlider committed Feb 5, 2022
commit 694819dcc41f82e3e6c8c7bf5ae9cafaeb8a23f8
1 change: 1 addition & 0 deletions cores/esp32/esp32-hal-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
#endif

#include "soc/soc_caps.h"
#include "soc/touch_sensor_periph.h"
// It fixes lack of pin definition for S3 and for any future SoC
// this function works for ESP32, ESP32-S2 and ESP32-S3 - including the C3, it will return -1 for any pin
int8_t digitalPinToTouchChannel(uint8_t pin) {
Expand Down