summaryrefslogtreecommitdiff
path: root/shared-bindings
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-08-18 08:44:10 -0400
committerDan Halbert <halbert@halwitz.org>2019-08-18 08:44:10 -0400
commite2a4c76a3745c512eb85ca5555ec35e5f7d52769 (patch)
tree0283335e2d5ee35acca75e0e1e89670494746a40 /shared-bindings
parent85d7398476687a3abdbb142d79b8302ac43ef760 (diff)
make nrf touchio be generic: now available for SAMD51 too
Diffstat (limited to 'shared-bindings')
-rw-r--r--shared-bindings/touchio/TouchIn.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/shared-bindings/touchio/TouchIn.h b/shared-bindings/touchio/TouchIn.h
index 2e5c51607..e04e79c0b 100644
--- a/shared-bindings/touchio/TouchIn.h
+++ b/shared-bindings/touchio/TouchIn.h
@@ -28,7 +28,12 @@
#define MICROPY_INCLUDED_SHARED_BINDINGS_TOUCHIO_TOUCHIN_H
#include "common-hal/microcontroller/Pin.h"
+
+#if CIRCUITPY_TOUCHIO_USE_NATIVE
#include "common-hal/touchio/TouchIn.h"
+#else
+#include "shared-module/touchio/TouchIn.h"
+#endif
extern const mp_obj_type_t touchio_touchin_type;