In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ringlord wrote: JonnyMac-- I got your Ping demo code working perfectly in the PDB/USB SX-Key/SX-28 environment. I also got your LCD demo code working perfectly in the same environment. Since YOU wrote the code, this was not too hard for ME to do! Of course, I imaging you can guess what I did next . . . I combined the two so I could watch Ping distances on the 2x16 LCD in preparation to moving the system to my robot. Basically, I merely stuck the PING.SXB code into the LCD_4.SXB code. I moved the Ping port to RC.0 and added the WORD variable "distance" to the variable declarations. (I also stripped out LCD_BIN, LCD_HEX, and the smiley face code and data.) I made the pullup statements look like this . . . PLP_A = %0000 PLP_B = %0000_0000 PLP_C = %0000_0000 It doesn't SEEM to make a difference. It doesn't [i]quite[/i] work. Although the LCD display updates in a linear manner as distance changes, the numbers are wrong. I wonder if I do not understand something about sending your PING.SXB WORD variable "distance" to your LCD_4.SXB LCD_DEC subroutine? The comingled code is attached. The changes are simple and as outlined above. Got a minute? :) --Bill ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=415892 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2010 (http://www.dotNetBB.com)