This commit is contained in:
gauthiier
2022-07-13 14:30:59 +02:00
parent 367d996afc
commit 581c63a6aa
66 changed files with 2157 additions and 0 deletions
@@ -0,0 +1,30 @@
#include <FastTouch.h>
//
// Adrian Freed 2019
//
// report on whether pins are being touched based on how
// slow the pins arrive at HIGH from ground when a PULLUP resistor is enabled
// all pin except the built-in LED are probed. Note that each pin will be hard pulled
// to ground and that interrupts are briefly stopped during the measurement.
//
void setup()
{
SerialUSB.begin(9600);
}
void loop()
{
for(int i=0;i<CORE_NUM_DIGITAL;++i)
{
if(i!=LED_BUILTIN)
{
SerialUSB.print(fastTouchRead(i)); SerialUSB.print(" ");
}
else
SerialUSB.print("LED ");
}
SerialUSB.println();
delay(200);
}