- #1
Jiggy-Ninja
- 309
- 1
I'm trying to figure out a bit of a http://www.ck-components.com/tpc/navigation,10475,en.html. Data sheet is in the Literature box marked "Download TPC catalog pages".
The electrical sketch on page two is what's confusing me. How would I read this switch to figure out what its state is? This switch is going to be on the far side of an I2C connection along with a few other buttons, so I was thinking about using a GPIO Port Expander like the chip I linked to to read it, but I'm confused about how to do that.
Would it even be possible to deduce the state of the switch from a single reading? Or would I have to take multiple readings, fiddling with the input/output settings of the bits to figure it out?
EDIT: That should be C&K in the title. Could a mod please correct that?
The electrical sketch on page two is what's confusing me. How would I read this switch to figure out what its state is? This switch is going to be on the far side of an I2C connection along with a few other buttons, so I was thinking about using a GPIO Port Expander like the chip I linked to to read it, but I'm confused about how to do that.
Would it even be possible to deduce the state of the switch from a single reading? Or would I have to take multiple readings, fiddling with the input/output settings of the bits to figure it out?
EDIT: That should be C&K in the title. Could a mod please correct that?
Last edited: