Skip to content

Commit a4ca3f0

Browse files
authored
Update comments.
1 parent 31e8edd commit a4ca3f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/CommunitySubmitted/HC-SR04/HC-SR04.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ void loop() {
5050
// This function is called at intervals to send temperature sensor data to Cayenne.
5151
CAYENNE_OUT(DISTANCE_VIRTUAL_CHANNEL)
5252
{
53-
digitalWrite(TRIGGER_PIN, LOW);// Clears the trigPin
53+
digitalWrite(TRIGGER_PIN, LOW);// Clears the trigger Pin
5454
delayMicroseconds(2);
5555

56-
digitalWrite(TRIGGER_PIN, HIGH); // Sets the trigPin on HIGH state for 10 micro seconds
56+
digitalWrite(TRIGGER_PIN, HIGH); // Sets the trigger Pin on HIGH state for 10 micro seconds
5757
delayMicroseconds(10);
5858
digitalWrite(TRIGGER_PIN, LOW);
5959

60-
duration = pulseIn(ECHO_PIN, HIGH);// Reads the echoPin, returns the sound wave travel time in microseconds
60+
duration = pulseIn(ECHO_PIN, HIGH);// Reads the echo Pin, returns the sound wave travel time in microseconds
6161

6262
distance = duration * 0.034 / 2; // Calculating the distance.
6363

0 commit comments

Comments
 (0)