From 2344db1e8d2b0a2e21a6cf03ebbd13c5afdfdc4c Mon Sep 17 00:00:00 2001 From: marqdevx <11246294+marqdevx@users.noreply.github.com> Date: Wed, 16 Dec 2020 16:38:53 +0100 Subject: [PATCH] Added signals check example --- .../TouchPads/Touch_signals/Touch_signals.ino | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 examples/TouchPads/Touch_signals/Touch_signals.ino diff --git a/examples/TouchPads/Touch_signals/Touch_signals.ino b/examples/TouchPads/Touch_signals/Touch_signals.ino new file mode 100644 index 0000000..a265e7b --- /dev/null +++ b/examples/TouchPads/Touch_signals/Touch_signals.ino @@ -0,0 +1,28 @@ +// Touch Buttons test + +#include +MKRIoTCarrier carrier; + +int msr[5]; + +void setup() { + // put your setup code here, to run once: + //CARRIER_CASE = false; //No needed to use it, default false + Serial.begin(9600); + carrier.begin(); + + +} + +void loop() { + // put your main code here, to run repeatedly: + for (int i = 0; i < 5; i++) { + msr[i] = analogRead(i); + Serial.print(i); + Serial.print(" - "); + Serial.print(msr[i]); + Serial.print("\t"); + } + Serial.println(); + +}