Skip to content

Commit f6616d9

Browse files
committed
Example updates
Minor text changes
1 parent a1d41ea commit f6616d9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

libraries/CCIO-8/ReadCCIODigitalInput/ReadCCIODigitalInput.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void loop() {
6161
PinStatus state = digitalRead(CLEARCORE_PIN_CCIOA0);
6262

6363
// Display the state of the input connector.
64-
Serial.print("Input state: ");
64+
Serial.print("CCIOA0 Input state: ");
6565
if (state) {
6666
Serial.println("ON");
6767
}
@@ -71,4 +71,4 @@ void loop() {
7171

7272
// Wait a second then repeat...
7373
delay(1000);
74-
}
74+
}

libraries/DigitalIO/ReadDigitalInput/ReadDigitalInput.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void loop() {
5353
state = digitalRead(inputPin);
5454

5555
// Display the state of the input connector.
56-
Serial.print("Input state: ");
56+
Serial.print("DI-6 Input state: ");
5757
if (state) {
5858
Serial.println("ON");
5959
}
@@ -63,4 +63,4 @@ void loop() {
6363

6464
// Wait a second then repeat...
6565
delay(1000);
66-
}
66+
}

libraries/DigitalIO/ReadDigitalInputRiseFall/ReadDigitalInputRiseFall.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* to the USB serial port every 2 seconds.
1212
*
1313
* Requirements:
14-
* ** An input device, such as a switch or sensor, connected to IO-0.
14+
* ** An input device, such as a switch or sensor, connected to DI-6.
1515
*
1616
* Links:
1717
* ** web link to doxygen (all Examples)
@@ -26,7 +26,7 @@
2626

2727
// Specify which input connector to use.
2828
// ConnectorIO0 through ConnectorA12 all have digital input capability.
29-
#define InputConnector ConnectorIO0
29+
#define InputConnector ConnectorDI6
3030

3131
// Declares two boolean variables used to hold information on whether the input
3232
// has risen or fallen
@@ -58,7 +58,7 @@ void loop() {
5858
risen = InputConnector.InputRisen();
5959
fallen = InputConnector.InputFallen();
6060

61-
Serial.print("State: ");
61+
Serial.print("DI-6 Transitions: ");
6262

6363
if (risen && fallen) {
6464
Serial.println("RISEN and FALLEN");
@@ -75,4 +75,4 @@ void loop() {
7575

7676
// Wait a couple seconds then repeat...
7777
delay(2000);
78-
}
78+
}

0 commit comments

Comments
 (0)