board_modules.h File Reference

Definitions for Wemos stackable hardware modules (shields) More...

Detailed Description

Definitions for Wemos stackable hardware modules (shields)

The board can be used with lots of optional stackable hardware modules. This file contains the default configurations for those hardware modules that have been tested. Most of these configurations can be overridden by an application-specific configuration.

The configurations of the respective hardware modules only take place if the corresponding driver modules are used.

Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file board_modules.h.

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

MRF24J40 shield configuration

Configuration for the MRF24J40 shield when module mrf24j40 is used.

MRF24J40 module uses SPI_DEV(0) and according pins on this board to be compatible with the Wemos D1 mini MRF24J40 shield.

Note
To keep an additional GPIO free, the ENC28J60 RESET signal can be connected to ESP32 Reset pin.
#define MRF24J40_PARAM_SPI   SPI_DEV(0)
 SPI_DEV(0) is used (fixed)
 
#define MRF24J40_PARAM_SPI_CLK   SPI_CLK_1MHZ
 SPI bus speed used (can be overriden)
 
#define MRF24J40_PARAM_CS   GPIO26
 MRF24J40 CS signal (can be overriden)
 
#define MRF24J40_PARAM_INT   GPIO17
 MRF24J40 INT signal (can be overriden)
 
#define MRF24J40_PARAM_RESET   GPIO16
 MRF24J40 RESET signal (can be overriden)
 

SD-Card shield configuration

Configuration of the SD-Card interface when module sdcard_spi is used.

SD card interface uses SPI_DEV(0) on this board to be compatible with the Wemos D1 mini micro SD card shield. The D8 pin (GPIO5) is used as default CS signal.

Note
Please override the definition of CS pin by an by application-specific configurations according to your solder bride configuration.
#define SDCARD_SPI_PARAM_SPI   SPI_DEV(0)
 SPI_DEV(0) is used (fixed)
 
#define SDCARD_SPI_PARAM_CLK   SPI0_SCK
 SPI_DEV(0) SCK is used (fixed)
 
#define SDCARD_SPI_PARAM_MOSI   SPI0_MOSI
 SPI_DEV(0) MOSI is used (fixed)
 
#define SDCARD_SPI_PARAM_MISO   SPI0_MISO
 SPI_DEV(0) MISO is used (fixed)
 
#define SDCARD_SPI_PARAM_POWER   GPIO_UNDEF
 power control is not used (fixed)
 
#define SDCARD_SPI_PARAM_CS   SPI0_CS0
 SD-Card CS signal (overridde it)