To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 2047
  Using analog ports as digital
 
The HB manual says that if you us the digital command on an analog port, the result is true if analog measurement is <127, and false for analog>127. I tried this and it does not seem to work that way. I get true for 0<analog<255, basically (...) (27 years ago, 26-Apr-97, to lugnet.robotics.handyboard)
 
  Re: Using analog ports as digital
 
(...) The way it really works is that if the analog value is 255 then it returns 0 other wise it returns 1. So you can modify the lib_hb.c file and change the constant, or use the analog() call on the pin. --Chuck (27 years ago, 26-Apr-97, to lugnet.robotics.handyboard)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR