We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fba3696 commit aa9131fCopy full SHA for aa9131f
drivers/AnalogIn.h
@@ -102,7 +102,7 @@ class AnalogIn {
102
*
103
* @returns A floating-point value representing the current input voltage, measured in volts.
104
*/
105
- float read_volts();
+ float read_voltage();
106
107
/**
108
* Sets this AnalogIn instance's reference voltage.
drivers/source/AnalogIn.cpp
@@ -54,7 +54,7 @@ unsigned short AnalogIn::read_u16()
54
return ret;
55
}
56
57
-float AnalogIn::read_volts()
+float AnalogIn::read_voltage()
58
{
59
return (this->read() * this->vref);
60
0 commit comments