Lolin TFT 2.4 - Fail operate

You have selected “WEMOS D1 R1” in PlatformIO, but in the Arduino IDE you select “WEMOS D1 R2 & mini”?

Well let’s straighten up your platformio.ini file first, use

board = d1_mini

there.