Hello, i am trying to modify This code which is essentially based on the provided example of this library.
in my context:
- 2x analog ladder button inputs (same scale/levels) of ADC readings
- of those 2 inputs, one has 5 buttons and the other 4 buttons (+ open/high)
- only ever a single button will be pressed at once
- i wish to use the virtual buttons and have 0-8 as result/serial print
i have viewed the multiple buttons examples provided here but they are for non-ladder. are there any suggestions you can make to have this work on ladder?
ive tried essentially doubling the lines with _B after each variable/ definitions of the initial code but it seems to always detect the second input as the first one (buttons 1-4) regardless of the Analog input used.
are there any known limitations regarding ladderButton and more then one input?
as a side mention, it seems trying to use INPUT_PULLUP with esp32 results in no pullup applied, but from some searches it seems this is an arduino limitation with analogRead() which changes the pin mode every time. i can work around this with a physical pullup
Hello, i am trying to modify This code which is essentially based on the provided example of this library.
in my context:
i have viewed the multiple buttons examples provided here but they are for non-ladder. are there any suggestions you can make to have this work on ladder?
ive tried essentially doubling the lines with _B after each variable/ definitions of the initial code but it seems to always detect the second input as the first one (buttons 1-4) regardless of the Analog input used.
are there any known limitations regarding ladderButton and more then one input?
as a side mention, it seems trying to use INPUT_PULLUP with esp32 results in no pullup applied, but from some searches it seems this is an arduino limitation with analogRead() which changes the pin mode every time. i can work around this with a physical pullup