Browse Source

restore deafults for ESP32 standard modules

pull/807/head
Markus Krause 2 years ago
parent
commit
c532be86b2
  1. 19
      src/config/config.h

19
src/config/config.h

@ -44,20 +44,25 @@
// default pinout (GPIO Number) // default pinout (GPIO Number)
#if defined(ESP32) #if defined(ESP32)
// this is the default ESP32 (son-S) pinout on the WROOM modules for VSPI,
// for the ESP32-S3 there is no sane 'default', as it has full flexibility
// to map its two HW SPIs anywhere and PCBs differ materially,
// so it has to be selected in the Web UI
#define DEF_CS_PIN 5 #define DEF_CS_PIN 5
#define DEF_CE_PIN 4 #define DEF_CE_PIN 4
#define DEF_IRQ_PIN 16 #define DEF_IRQ_PIN 16
#define DEF_MISO_PIN 48 #define DEF_MISO_PIN 19
#define DEF_MOSI_PIN 35 #define DEF_MOSI_PIN 23
#define DEF_SCLK_PIN 36 #define DEF_SCLK_PIN 18
#else #else
#define DEF_CS_PIN 15 #define DEF_CS_PIN 15
#define DEF_CE_PIN 2 #define DEF_CE_PIN 2
#define DEF_IRQ_PIN 0 #define DEF_IRQ_PIN 0
// TODO, these below are obviously garbage and just copy paste // these are given to relay the correct values via API
#define DEF_MISO_PIN 48 // they cannot actually be moved for ESP82xx models
#define DEF_MOSI_PIN 35 #define DEF_MISO_PIN 12
#define DEF_SCLK_PIN 36 #define DEF_MOSI_PIN 13
#define DEF_SCLK_PIN 14
#endif #endif
// default NRF24 power, possible values (0 - 3) // default NRF24 power, possible values (0 - 3)

Loading…
Cancel
Save