mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-30 09:16:11 +02:00
restore deafults for ESP32 standard modules
This commit is contained in:
parent
2e0add3548
commit
c532be86b2
1 changed files with 12 additions and 7 deletions
|
@ -44,20 +44,25 @@
|
|||
|
||||
// default pinout (GPIO Number)
|
||||
#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_CE_PIN 4
|
||||
#define DEF_IRQ_PIN 16
|
||||
#define DEF_MISO_PIN 48
|
||||
#define DEF_MOSI_PIN 35
|
||||
#define DEF_SCLK_PIN 36
|
||||
#define DEF_MISO_PIN 19
|
||||
#define DEF_MOSI_PIN 23
|
||||
#define DEF_SCLK_PIN 18
|
||||
#else
|
||||
#define DEF_CS_PIN 15
|
||||
#define DEF_CE_PIN 2
|
||||
#define DEF_IRQ_PIN 0
|
||||
// TODO, these below are obviously garbage and just copy paste
|
||||
#define DEF_MISO_PIN 48
|
||||
#define DEF_MOSI_PIN 35
|
||||
#define DEF_SCLK_PIN 36
|
||||
// these are given to relay the correct values via API
|
||||
// they cannot actually be moved for ESP82xx models
|
||||
#define DEF_MISO_PIN 12
|
||||
#define DEF_MOSI_PIN 13
|
||||
#define DEF_SCLK_PIN 14
|
||||
#endif
|
||||
|
||||
// default NRF24 power, possible values (0 - 3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue