Problem with ultrasonic+esp8266 when use blynk

You’ve removed the lines from the Edgent example that say…

// Uncomment your board, or configure a custom board in Settings.h
//#define USE_SPARKFUN_BLYNK_BOARD
//#define USE_NODE_MCU_BOARD
//#define USE_WITTY_CLOUD_BOARD
//#define USE_WEMOS_D1_MINI

so the Custom board configuration in Settings.h is being used.

This utilises GPIO4 (Pin D2) for the LED, so you have a pin conflict…

You’d be better adding back in the #define USE_NODE_MCU_BOARD line so that the onboard LED is utilised, along with the FLASH button on the board to clear the provisioning.

More info here…

Pete.

1 Like