Noob wiring/software help for esp8266

this is what i thought as inexperienced as i am, dont know what any of that diagram means. google said i might need a resistor to drop the volt from 5 to 3 but why do this if one of you guys can teach me to put a bit of extra code into the prexisting code to power the light from a gpio instead of vin. Dont even know if it would work but thats why im here. im looking up button librarys as @sonofcy said