ESP8266

Node MCU

Wemos D1 Mini

wemosd1mini

static const uint8_t SDA = 4;
static const uint8_t SCL = 5;

static const uint8_t LED_BUILTIN = 2;
static const uint8_t BUILTIN_LED = 2;

static const uint8_t D0   = 16;
static const uint8_t D1   = 5;
static const uint8_t D2   = 4;
static const uint8_t D3   = 0;
static const uint8_t D4   = 2;
static const uint8_t D5   = 14;
static const uint8_t D6   = 12;
static const uint8_t D7   = 13;
static const uint8_t D8   = 15;
static const uint8_t RX   = 3;
static const uint8_t TX   = 1;

pindefesp

Problème : Soft WDT reset

C’est peut-être dû à un manque de puissance si vous alimentez deux Wemos sur le même ordi.

Node MCU V2

nodemcu-pinout

Boot Mode

Monitor port = 74880

boot spi mode from SPI: 7,7
boot spi mode from UART: 5,7

reset causes:
    0:
    1: normal boot
    2: reset pin
    3: software reset
    4: watchdog reset

boot device:
    0:
    1: ram
    3: flash

    The Espressif code can boot in different modes, selected on power-up based on GPIO pin levels. (MTDO is equivalent to GPIO15).
    MTDO 	GPIO0 	GPIO2 	Mode 	Description
    L 	L 	H 	UART 	Download code from UART
    L 	H 	H 	Flash 	Boot from SPI Flash
    H 	x 	x 	SDIO 	Boot from SD-card

    In the bootup message 'boot mode:(x,y)' three low bits of x are {MTDO, GPIO0, GPIO2}.