In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: I cleaned up my code and have running program -- resolution is one inch or one centimeter, depending on a Conditional Compilation setting. You could divide those constants by ten to increase the resolution of the return value, but you're still working within the resolution of the sensor which, I believe, is one centimeter. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=188113#m188495 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)