Skip to main content Link Menu Expand (external link) Document Search Copy Copied

void setCount(int count)

Sets the LineCounter count to count.

If the line counter is being presseed, then the countIn will be set to count + 1.

Example

LineCounter l = LineCounter(Brain.ThreeWirePort.A);

l.setCount(3);

cout << "Count: " << l.getCountOut() << endl;
//prints "Count: 3"