| | Re: Analog I/O as Digital I/O
|
| (...) Since the analog inputs read voltage levels, you should be able to just plug in any switch or 5-0volt input directly. To read the values, use the analog command, and in theory you should only get two possible values, 255 for +5volts, and 0 for (...) (25 years ago, 27-Sep-99, to lugnet.robotics.handyboard)
| | | | Re: Analog I/O as Digital I/O
|
| Also, the "digital(int p)" extends to the analog ports too. When used with a port that is analog in hardware, it just uses 127 as a threshold value to return 1 or 0 (note below 127 returns true). See page 22 in the HB manual. However, with this (...) (25 years ago, 27-Sep-99, to lugnet.robotics.handyboard)
| |