trying to test pushbutton

ahhh yes. ok gonna try it out. thanks everybody.

ps. in my book it says that for simple code i can simple use a delay as i have.

also, in the state change tutorial you sent. there is a resistor in line with the switch. is this necessary? safer?