Skip to content

Commit eb0020d

Browse files
author
brentru
committed
update readme to reflect updated example
1 parent 9aea5e4 commit eb0020d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,17 @@ Initialize the scale by passing it a data pin and a pin to toggle the units butt
5959
6060
dymo = Scale(board.D3, board.D4)
6161
62-
Obtain data from the scale:
62+
Get the item's weight from the scale:
6363

6464
.. code-block:: python
6565
66-
dymo.get_scale_data()
66+
dymo.weight
67+
68+
Get the item's units from the scale:
69+
70+
.. code-block:: python
71+
72+
dymo.units
6773
6874
To toggle between units (simulate a button press):
6975

0 commit comments

Comments
 (0)