Skip to content

Instantly share code, notes, and snippets.

/*
Capacitive Sensing methods using Arduino
Visit https://bashtelorofscience.wordpress.com/ for a description and the circuit required to make this work.
Please see https://www.arduino.cc/en/Reference/PortManipulation for an explanation on the direct I/O access used in this sketch.
note:
the assembler command
__asm__("nop\n\t");
is used in the sketch to do single clock (62ns) delays.