Support for Wemos LOLIN D32 Pro. More...
Support for Wemos LOLIN D32 Pro.
Wemos LOLIN D32 Pro is a development board that uses the ESP32-WROVER module which has a built-in 4 MByte SPI RAM. Most important features of the board are
Wemos LOLIN D32 Pro belongs to the class of general purpose boards where most ESP32 pins are broken out for easier access.
This section describes
Most features of the board are provided by the ESP32 SoC. For detailed information about the ESP32, see section MCU ESP32.
The board for the Wemos LOLIN D32 Pro has the following on-board components:
The following table shows the default board configuration, which is sorted according to the defined functionality of GPIOs. This configuration can be overridden by an application-specific configuration.
|Pin||Default Configuration*||Optional Configuration||Remarks / Prerequisites||Configuration|
|GPIO5||SPI_DEV(0):CS0 / LED0||SPI Interfaces|
|GPIO4||SPI_DEV(0):CS1||SD Card CS||when module sdcard_spi is used||SPI Interfaces|
|GPIO1||UART_DEV(0):TxD||Console (configuration is fixed)||UART interfaces|
|GPIO3||UART_DEV(0):RxD||Console (configuration is fixed)||UART interfaces|
|GPIO35||ADC_LINE(3)||VBat measurement (GPIO is not broken out)||ADC Channels|
|GPIO32||ADC_LINE(4)||TFT_LED||when TFT is connected||ADC Channels|
|GPIO33||ADC_LINE(5)||TFT_RESET||when TFT is connected||ADC Channels|
|GPIO0||PWM_DEV(0):0||MRF24J40/ENC28J60 RESET||when module mrf24j40/enc28j60 is used||PWM Channels|
|GPIO2||PWM_DEV(0):1||MRF24J40/ENC28J60 CS||when module mrf24j40/enc28j60 is used||PWM Channels|
|GPIO13||-||MRF24J40/ENC28J60 INT||when module mrf24j40/enc28j60 is used|
|GPIO12||-||TS_CS||when TFT is connected|
|GPIO14||-||TFT_CS||when TFT is connected|
|GPIO27||-||TFT_DC||when TFT is connected|
* Default configuration cannot be used or is not available at all when optional configuration is used. For example, when the TFT is connected, GPIO32 is used as TFT_LED signal and ADC_LINE(4) is not available.
For detailed information about the configuration of ESP32 boards, see section Common Peripherals.
MRF24J40-based IEEE 802.15.4 radio modules and ENC28J60-based Ethernet network interface modules have been tested with the board. You could use the following code in your application-specific configuration to use such modules:
For other parameters, the default values defined by the drivers can be used.
The following picture shows the pinout of WEMOS LOLIN D32 PRO board as defined by the default board configuration. The light green GPIOs are not used by configured on-board hardware components and can be used for any purpose. However, if optional off-board hardware modules are used, these GPIOs may also be occupied, see section Board Configuration for more information.
The corresponding board schematic can be found here.
Flashing RIOT is quite easy. The board has a Micro-USB connector with reset/boot/flash logic. Just connect the board to your host computer using the programming port and type:
For detailed information about ESP32 as well as configuring and compiling RIOT for ESP32 boards, see RIOT-OS on ESP32 SoC Series Boards.
|Mapping from MCU pins to Arduino pins. |
|Board specific definitions for Wemos LOLIN D32 Pro. |
|Board specific configuration of direct mapped GPIOs. |
|Peripheral MCU configuration for Wemos LOLIN D32 Pro. |