changed it to digitalwrite after flashing the app with tinker, it worked. However the toast.make text is causing a fatal error causing the app to crash, but with that commented out it runs fine. Ill try and solve the toast error myself.
Thanks for your help @ScruffR