Skip to content

Commit 75659b5

Browse files
committed
typofix
1 parent 6db8309 commit 75659b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GP2Y1014AU0F_demos/GP2Y1014AU/GP2Y1014AU.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void loop()
2929

3030
digitalWrite(ledPin, HIGH); // turn the LED off
3131

32-
output_voltage = (output_voltage / 1023) * LOGIC_VOLTAGE;
32+
output_voltage = (output_voltage / 1023) * ANALOG_VOLTAGE;
3333
dust_density = (0.18 * output_voltage) - 0.1;
3434

3535
Serial.print("Voltage = ");

0 commit comments

Comments
 (0)