File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,14 +50,14 @@ void loop() {
50
50
// This function is called at intervals to send temperature sensor data to Cayenne.
51
51
CAYENNE_OUT (DISTANCE_VIRTUAL_CHANNEL)
52
52
{
53
- digitalWrite (TRIGGER_PIN, LOW);// Clears the trigPin
53
+ digitalWrite (TRIGGER_PIN, LOW);// Clears the trigger Pin
54
54
delayMicroseconds (2 );
55
55
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
57
57
delayMicroseconds (10 );
58
58
digitalWrite (TRIGGER_PIN, LOW);
59
59
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
61
61
62
62
distance = duration * 0.034 / 2 ; // Calculating the distance.
63
63
You can’t perform that action at this time.
0 commit comments