pin Property

Top  Previous  Next

An array that gets or sets which pin is assigned to each capture channel.

Syntax

Cell.Capture.pin[channel]

Property Value

The pin number assigned to the specified capture channel as shown in the table below.

Remarks

The value of channel must be in the range 0 - 3.

 

The following numeric values are used to designate physical pins:

 

Pin

Value

A0

0

A1

1

A2

2

A3

3

A4

4

A5

5

A6

6

A7

7

B0

8

B1

9

B2

10

B3

11

B4

12

B5

13

B6

14

B7

15

 

Assigning a value of -1 will disable the capture channel.

Examples

Cell.Capture.pin[3] = 9;// Assign B1 to capture channel 3
pinVal = Cell.Capture.pin[0];// See what's assigned to channel 0