looking the product that had 5or 4-way switch 2 one analog input
and display. I lost the product link.
Thank you
5-way switch 2 one analog input
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- blnkjns
- Posts: 963
- Joined: Fri Oct 02, 2020 3:33 am
Re: 5-way switch 2 one analog input
Is it obsolete?
Maybe you could use this:
https://www.adafruit.com/product/2925
It is 8-way though.
Combined with 7 resistors, for example 1kΩ ones, between each pair of pins you get a voltage divider for analog output. The top end of the row goes to VCC, the bottom value to GND, middle pin to analog input.
The value can be retrieved by
Maybe you could use this:
https://www.adafruit.com/product/2925
It is 8-way though.
Combined with 7 resistors, for example 1kΩ ones, between each pair of pins you get a voltage divider for analog output. The top end of the row goes to VCC, the bottom value to GND, middle pin to analog input.
The value can be retrieved by
Code: Select all
int n=(analogRead(ROTARYPIN)+73)/146;
Please be positive and constructive with your questions and comments.