I tried to us the digital I/O pins 0 and 1 as input for two push-buttons, but I experienced very curious behavior (sometimes work).
The same hardware setup and program works well for digital I/O pin 2.
I suppose there is a problem caused by the fact that these pins are multiplexed with the serial channel (signals Tx, RX).
Can anyone explain the problem and give a solution?
I suppose there is a way to control the multiplexer responsible for these pins.