Skip to content

Commit 2344db1

Browse files
authored
Added signals check example
1 parent c026ba2 commit 2344db1

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Touch Buttons test
2+
3+
#include <Arduino_MKRIoTCarrier.h>
4+
MKRIoTCarrier carrier;
5+
6+
int msr[5];
7+
8+
void setup() {
9+
// put your setup code here, to run once:
10+
//CARRIER_CASE = false; //No needed to use it, default false
11+
Serial.begin(9600);
12+
carrier.begin();
13+
14+
15+
}
16+
17+
void loop() {
18+
// put your main code here, to run repeatedly:
19+
for (int i = 0; i < 5; i++) {
20+
msr[i] = analogRead(i);
21+
Serial.print(i);
22+
Serial.print(" - ");
23+
Serial.print(msr[i]);
24+
Serial.print("\t");
25+
}
26+
Serial.println();
27+
28+
}

0 commit comments

Comments
 (0)