Arduino Function: Capacitive.set_CS_Timeout_Millis

Description

The set_CS_Timeout_Millis method may be used to set the CS_Timeout_Millis value, which determines how long the method will take to timeout, if the receive (sense) pin fails to toggle in the same direction as the send pin. A timeout is neccessary because a while loop will lock-up a sketch unless a timeout is provided. CS_Timeout_Millis' default value is 2000 milliseconds (2 seconds).

Syntax

void set_CS_Timeout_Millis(unsigned long timeout_millis);

Parameters

  • unsigned long

Returns

none 


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc