GP2Y0A21YK0F IRsensor 用ライブラリ
Dependents: NHK2019_mae_v6 NHK2019_main_v6 NHK2019_usiro_v6 NHK2019_mae_v6 ... more
Diff: IRsensor.cpp
- Revision:
- 4:004bdb88ab3e
- Parent:
- 3:26e2cfa5a983
- Child:
- 7:790cd18896a8
diff -r 26e2cfa5a983 -r 004bdb88ab3e IRsensor.cpp --- a/IRsensor.cpp Thu Aug 22 06:14:12 2019 +0000 +++ b/IRsensor.cpp Thu Aug 29 02:20:25 2019 +0000 @@ -86,3 +86,8 @@ { return distance_average; } + +float IRsensor::getVoltage() +{ + return voltage; +} \ No newline at end of file