button resistor ladder readings and setup


ok, know resistor ladder setup , using 328p (uno r3). used several times in sketches.

my question:
i can see 4 ways setup input on mc.

pulled high without  input_pullup
pulled high with  input_pullup
pulled low without  input_pullup
pulled low with  input_pullup

now, there way physically change pulled high pulled low through programming or inputs?
i have attached eagle design have made 12 button ladder.  have found more reliable breadboard , user can plug ever resistor values want , test values using 'button read' sketch.  have been within 4 points using pcb , lot higher spread breadboard.  hope able put use , have better results projects.  eagle files not show want use single machined header pins resistor leads , tact buttons soldered board on new board allow changing resistors without getting solder gun out every time. 5v-output-gnd 3 pin can pulled off , turned reverse 5v & gnd different values, pulled high/ pulled low.

in attached pics: labeled according pin attachment,
orange - 5v
purple - value
yellow - gnd


that being said, have tested button board , able 4 readings each button setup 4 different input methods mentioned above total of 48 readings 1 board.
so... without having physically reverse 3 pin connector hand, there way reverse pins through programming or pin assignments?

if current isnt high, can feed power digital outputs. enables switch pos/neg.


Arduino Forum > Using Arduino > Sensors > button resistor ladder readings and setup


arduino

Comments

Popular posts from this blog

Authentication error while password reset - Raspberry Pi Forums

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums