Button assumes an initial state that may not match reality, and only starts to register correctly once something changes. I discovered this when testing the limit switch inputs, which with nothing connected should read HIGH but instead read low until you bring the line low and then high with a button. Then it starts to track correctly.
Button assumes an initial state that may not match reality, and only starts to register correctly once something changes. I discovered this when testing the limit switch inputs, which with nothing connected should read HIGH but instead read low until you bring the line low and then high with a button. Then it starts to track correctly.