Sorry, my bad, had the issue with more code, made a smaller afterwards and forgot the pullup.
Added code tags.
Didn't add schematic as the problem was for no components attached.
I will try adding the button again and see what happens
Sorry, my bad, had the issue with more code, made a smaller afterwards and forgot the pullup.
Added code tags.
Didn't add schematic as the problem was for no components attached.
I will try adding the button again and see what happens