Hacker News new | ask | show | jobs
by amelius 1592 days ago
You can also detect Z state by driving the input high, reading, then driving the input low, reading. If both reads are different, then you have a Z state. Otherwise, the input is the read state.

Of course, drive the input through a resistor.