what I mean is that you start by connecting the switch as usual:
Z R1 10k
+----------------To Analog or digital Input
then if you connect it to the digital input, you will get only readings of 1 when it's not pressed and 0 when it's pressed. If instead you connect it to an analog input, you will read values around 0.8 when it's open and around 0 when it's closed. What I mean by thresholding is that you'd consider the reading a "digital 1" if it's above 0.5 and a "digital 0" if it's below 0.5. Something like:
analogValue = multiplexerAnalogRead(context, input, muxChannel);
digitalValue = analogValue > 0.5.
See, here and here for more info on the
Does it make more sense now?