You should use virtual pins instead of digital ones in the app, and choose suitable pins on your Wemos (note that the link below references GPIO numbers, which aren’t the same as the “D” numbers screen printed on to the Wemos)…
Is this going to be a device for freeze-frame photography?