summaryrefslogtreecommitdiff
path: root/shared-bindings/analogio/AnalogIn.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2018-02-07 13:08:42 -0800
committerScott Shawcroft <scott.shawcroft@gmail.com>2018-02-07 13:08:42 -0800
commit15db02664dedf0f2241a922fb1b756052710d80e (patch)
tree5233f122baa2f592c788fb275e937b692783fdd1 /shared-bindings/analogio/AnalogIn.c
parent243279fdc357124975b1ceb2ab4118bfe1be12fb (diff)
Clarify style of attribute comments in the Design Guide.
And update the core attributes to match the style.
Diffstat (limited to 'shared-bindings/analogio/AnalogIn.c')
-rw-r--r--shared-bindings/analogio/AnalogIn.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/shared-bindings/analogio/AnalogIn.c b/shared-bindings/analogio/AnalogIn.c
index 14b788295..b5f9d7a4e 100644
--- a/shared-bindings/analogio/AnalogIn.c
+++ b/shared-bindings/analogio/AnalogIn.c
@@ -106,13 +106,10 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(analogio_analogin___exit___obj, 4, 4,
//| .. attribute:: value
//|
-//| Read the value on the analog pin and return it. The returned value
-//| will be between 0 and 65535 inclusive (16-bit). Even if the underlying
-//| analog to digital converter (ADC) is lower resolution, the result will
-//| be scaled to be 16-bit.
+//| The value on the analog pin between 0 and 65535 inclusive (16-bit). (read-only)
//|
-//| :return: the data read
-//| :rtype: int
+//| Even if the underlying analog to digital converter (ADC) is lower
+//| resolution, the value is 16-bit.
//|
STATIC mp_obj_t analogio_analogin_obj_get_value(mp_obj_t self_in) {
analogio_analogin_obj_t *self = MP_OBJ_TO_PTR(self_in);
@@ -130,10 +127,8 @@ const mp_obj_property_t analogio_analogin_value_obj = {
//| .. attribute:: reference_voltage
//|
-//| The maximum voltage measurable. Also known as the reference voltage.
-//|
-//| :return: the reference voltage
-//| :rtype: float
+//| The maximum voltage measurable (also known as the reference voltage) as a
+//| `float` in Volts.
//|
STATIC mp_obj_t analogio_analogin_obj_get_reference_voltage(mp_obj_t self_in) {
analogio_analogin_obj_t *self = MP_OBJ_TO_PTR(self_in);