Asked
— Edited

I am trying to get a HC - SR04 Ultrasonic sensor to work off of ADC ports and having a little difficulty. Before I go any further into frustration - can you run this sensor off of ADC ports?
Are you just experimenting, or have you ran out of digital ports?
@JustinRatliff, Yes, I have run out of digital ports. I'll have to get another v4 connected to my project.
All script commands also have the board number as an optional parameter.
Alan
From the script help:
"Multiple EZ-B Boards
ARC supports multiple physical EZ-B Boards connected to your computer. You can specify the board by putting the board number in front of the port. For example: Servo(2.d0, 8) will move the D0 servo on EZ-B board #2 to position 8. If no board index is specified, the first board (zero) is assumed. If using more than one board, the first board is always responsible for movement panels."
Alan
Scroll down after the script commands in the script reference to the right of any script window. Maybe 3/4 of the way through the page or so.
Alan
1.d0,50 not 1,d0,50
Alan