Shop OBEX P1 Docs P2 Docs Learn Events
Ping on Stingray... — Parallax Forums

Ping on Stingray...

RambomanRamboman Posts: 101
edited 2011-01-23 22:37 in Propeller 1
I cannot have a stable operation with the three pings...
There is something in the demo code I don't understand...

PUB pings | i, ticks
repeat
repeat i from 0 to 2
ticks := Ping.ticks(PING_PIN + i)
Distance := ticks
ticks /= 104
ticks <#= 96

What is the purpose of the two last lines ?
Thanks for feedback...
Sign In or Register to comment.