Somewhere you need to specify the size and. lcd.begin(4,5); does not make sense. I create the lcd object as: LiquidCrystal_I2C lcd(0x27,20,4); // Set the I2C address and display size.SCL -> D1 SDA -> D2. So the SCL and SDA wires are both connected to the VCC line with a 10kOhm resistor. Note that I use a non-arduino board, so the pinouts are a little different, but the D1 and D2 pins should be the correct pins according to the Wemos D1 R2 pinout: In my wiring I used the bottom right D1 and D2.
D1 Mini Shields » AT8870 Motor Shield AT8870 Motor Shield¶ I2C dual motor driver shield based on at8870. Features¶ I2C interface; Power supply voltage: VM=6.5
SwgAn.