The correct sequence of pins Wemos D1 similar to Arduino UNO
At the time of this writing, there are two versions of Wemos D: R1 and R2 You will need to most directly determine which one is with you. Depending on the version of the board, the pin sequence is slightly different. The repository contains a picture that visually shows the differences.
Determining the version of the board is quite simple, using the trial method.