From abdaccf0c7bf679d9d25ad0e1f7e544209709896 Mon Sep 17 00:00:00 2001 From: PaulStoffregen Date: Tue, 5 Jan 2016 05:10:52 -0800 Subject: [PATCH] Add comment about Arduino Zero issue --- CapacitiveSensor.h | 1 + 1 file changed, 1 insertion(+) diff --git a/CapacitiveSensor.h b/CapacitiveSensor.h index 8081dee..4604fc1 100644 --- a/CapacitiveSensor.h +++ b/CapacitiveSensor.h @@ -87,6 +87,7 @@ #define DIRECT_WRITE_HIGH(base, mask) ((*(base+1)) = (mask)) //GPIO_OUT_W1TS_ADDRESS #elif defined(__SAMD21G18A__) +// runs extremely slow/unreliable on Arduino Zero - help wanted.... #define PIN_TO_BASEREG(pin) portModeRegister(digitalPinToPort(pin)) #define PIN_TO_BITMASK(pin) (digitalPinToBitMask(pin)) #define IO_REG_TYPE uint32_t