I have got two EZBv4's connected to my project. As you can see in the code below, I have an Ultrasonic sensor connected to controller #1 and I am trying to get it to move a servo one controller #0. When I run it, the servo does not move. Am I missing something in communicating between the two controllers?
$trigport = 1.D0
$echoport = 1.D1
$proxclose = 50 # Change for minimum distance
$proxsense = GetPing($trigport, $echoport)
IF($proxsense < $proxclose)
elseif($proxsense > $proxclose)