readCap()
Description
Return capacitive touch sensor reading.
Syntax
readCap(p);
readCap(p, samples);
Parameters
p
[uint8_t]: the capacitive sensor (0, 1, 2, 3, 6, 9, 10, or 12)
samples
[uint8_t]: number of samples (default=10)
Returns
[uint16_t]: The raw capacitive touch sensor reading.