Hi Bindiya, Bindiya Mansharamani <[EMAIL PROTECTED]> wrote: > > I am trying to use the ultra sonic sensor but the only > example i see is the sonic test. Whenever i run the > program (SonicTest) I always get 255, whether there is an > object or not.
> UltrasonicSensor sonic = new UltrasonicSensor(SensorPort.S4); the ultrasonic sensor (and any other I2C based sensor, too) currently doesn't work on port 4, only on ports 1 to 3. This is because port 4 is electrically different, it also has the RS485 interface for fast serial communication. > Any suggestions? Use one of the other ports. Hope this helps Jürgen -- Jürgen Stuber <[EMAIL PROTECTED]> http://www.jstuber.net/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Lejos-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lejos-discussion
