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

bool pressing()

Returns true when an object is within the field of view and is currently passing by.

Example

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

while(true){
    if(l.pressing()){
        Brain.Screen.print("Object passing by");
    }
    task::sleep(10);
}