mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-03-13 21:26:32 +03:00
Compare commits
2 Commits
c05e1cb77b
...
f5af4fb52f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f5af4fb52f | ||
|
|
96a7ea8a02 |
@@ -2952,7 +2952,6 @@ void System::set_valid_system_gpios() {
|
||||
// excluded:
|
||||
// GPIO3, GPIO45 - GPIO46 = strapping pins
|
||||
// GPIO26 - GPIO32 = SPI flash and PSRAM and not recommended
|
||||
// GPIO33 - GPIO37 = Octal flash/PSRAM
|
||||
// GPIO19 - GPIO20 = USB-JTAG
|
||||
// GPIO22 - GPIO25 = don't exist
|
||||
//
|
||||
@@ -2960,7 +2959,12 @@ void System::set_valid_system_gpios() {
|
||||
// GPIO11 - GPIO19 = ADC analog input only pins
|
||||
// GPIO47 - GPIO48 = valid on a Wemos S3
|
||||
// GPIO8 = used by Liligo S3 board profile for Rx
|
||||
valid_system_gpios_ = string_range_to_vector("0-48", "3, 45-46, 26-32, 33-37, 19-20, 22-25");
|
||||
if (ESP.getPsramSize() > 0) {
|
||||
// GPIO33 - GPIO37 = Octal flash/PSRAM
|
||||
valid_system_gpios_ = string_range_to_vector("0-48", "3, 45-46, 26-32, 33-37, 19-20, 22-25");
|
||||
} else {
|
||||
valid_system_gpios_ = string_range_to_vector("0-48", "3, 45-46, 26-32, 19-20, 22-25");
|
||||
}
|
||||
|
||||
#elif CONFIG_IDF_TARGET_ESP32
|
||||
// https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/peripherals/gpio.html
|
||||
|
||||
Reference in New Issue
Block a user