Let's Make Robots!

picaxe 28 ping ))) input output

PIng))) with Picaxe 28X1

I am using a Ping))) with 28x1 proto board and have it wired per this article http://letsmakerobots.com/node/1276 i am using the code snippet from that article aswell. I am trying to determine the distance of my ping and am having a hard time debuging. How would i go about doing this?

Here is my debug code. 

Main:

 LOW PORTC 0 

 HIGH PORTC 0

 PAUSE 1

 LOW PORTC 0

 LET DIRSC = %00000000

 PULSIN 0, 1, what goes here for the input? 

 debug

 goto Main