So i've chosen to purchase a Wemos D1 R2 board in order that my old Arduino Uno R3 projects can get some new IoT features. However, even if my code is working in Uno perfectly, i want to test it using D1 before adding features. My problem is that, even if i have found tables showing differences between the 2 boards' pinouts, i cannot understand the correspondence between the pinouts.
So i am giving you the table below. Let's say i want to define echo and trigger pins for a sensor in my code. For example:
#define TRIGGER_PIN 4
#define ECHO_PIN 3
That would be pins D3 and D4 at my Uno. But i cannot understand which those pins would be in Wemos D1 R2. Also, my two boards can be seen below for comparison


D4in your code then connect the wire to the pin marked D4 on the board. – per1234 Jan 26 '18 at 21:49