LCD Wemos and switch

When it comes to choosing which pin to use, you should read this:

If your Wemos is a D1 Mini then you should also use this table to translate GPIO numbers used in the link (and in your code) in to the “D” numbers printed on to your board:

Pete.