This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // readCapacitivePin | |
| // Input: Arduino pin number | |
| // Output: A number, from 0 to 17 expressing | |
| // how much capacitance is on the pin | |
| // When you touch the pin, or whatever you have | |
| // attached to it, the number will get higher | |
| #include "pins_arduino.h" // Arduino pre-1.0 needs this | |
| int pintoread1=10; | |
| int pintoread2=5; |
NewerOlder