I uploaded your revised sketch of Post-10 in my UNO with Button at DPin-2 and LED at DPin-4. After uploading, LED becomes turned on and the CP (Control Program) does not respond to Button press. What Arduino are you using?
I uploaded your revised sketch of Post-10 in my UNO with Button at DPin-2 and LED at DPin-4. After uploading, LED becomes turned on and the CP (Control Program) does not respond to Button press. What Arduino are you using?