Skip to content

Commit

Permalink
Added signals check example
Browse files Browse the repository at this point in the history
  • Loading branch information
marqdevx authored Dec 16, 2020
1 parent c026ba2 commit 2344db1
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions examples/TouchPads/Touch_signals/Touch_signals.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Touch Buttons test

#include <Arduino_MKRIoTCarrier.h>
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();

}

0 comments on commit 2344db1

Please sign in to comment.