ESP8266 D1 Mini
Board summary
Manufacturer | Wemos |
---|---|
Board docs | D1 mini |
Schematic | esp8266_d1_mini_v4.0.0_schematic.pdf 1 |
PlatformIO | WEMOS d1 MINI ESP322 |
Arduino pins | d1_mini/pins_arduino.h |
ESPHome platform | ESP8266 Platform |
ESPHome config | packages/boards/esp8266d1.yaml 3 |
Framework | arduino 4 |
ESPHome support
Board config:
esp8266:
board: d1_mini
Config for status_led
:
light:
- platform: status_led
name: "Status LED"
id: esp_status_led
icon: "mdi:alarm-light"
restore_mode: ALWAYS_OFF
pin:
number: D4
inverted: true
Pinout
Pins
Silkscreen pin | Internal pin | Interface | Notes |
---|---|---|---|
A0 | GPIO17 | ADC | |
D0 | GPIO16 | Deep-sleep wakeup | Can be accessed from RTC, weak pull-down |
D1 | GPIO5 | I²C SCL | High impedance |
D2 | GPIO4 | I²C SDA | High impedance |
D3 | GPIO0 | Controls boot mode (strapping pin), weak pull-up5 | |
D4 | GPIO2 | Blue LED (inverted) | Controls boot mode (strapping pin), weak pull-up |
D5 | GPIO14 | SPI CLK /SCK | Weak pull-up |
D6 | GPIO12 | SPI MISO | Weak pull-up |
D7 | GPIO13 | SPI MOSI | Weak pull-up |
D8 | GPIO15 | SPI CS /SS | Controls boot mode (strapping pin), weak-pull-up |
RX | GPIO3 | UART Serial RX | |
TX | GPIO1 | UART Serial TX |
The pin number mappings are similar to NodeMCU ESP8266, but the D1 mini has fewer pins, all of which map to internal pin numbers. Has no AUX LED on any boards.
Largely the pin notes from NodeMCU ESP8266 apply to D1 mini, the boot modes and reset causes are the same.