Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 3ebd67f

Browse files
author
Paul Sokolovsky
committed
library/machine.Pin: Remove .id() method and .board class attr.
Both aren't part of generic Hardware API: It's impossible to implement .id() method in a generic case (e.g., when Pin is instantiated by the underlying OS/RTOS). .board attribute is an obvious space hog which instead can be implemented on Python level if needed.
1 parent 19e0652 commit 3ebd67f

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

docs/library/machine.Pin.rst

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,6 @@ Methods
158158
and get the value of the pin. It is equivalent to Pin.value([x]).
159159
See :meth:`Pin.value` for more details.
160160

161-
.. method:: Pin.id()
162-
163-
Get the pin identifier. This may return the ``id`` as specified in the
164-
constructor. Or it may return a canonical software-specific pin id.
165-
166161
.. method:: Pin.mode([mode])
167162

168163
Get or set the pin mode.
@@ -217,19 +212,6 @@ Methods
217212

218213
This method returns a callback object.
219214

220-
Attributes
221-
----------
222-
223-
.. class:: Pin.board
224-
225-
Contains all ``Pin`` objects supported by the board. Examples::
226-
227-
Pin.board.GP25
228-
led = Pin(Pin.board.GP25, mode=Pin.OUT)
229-
Pin.board.GP2.alt_list()
230-
231-
Availability: WiPy.
232-
233215
Constants
234216
---------
235217

0 commit comments

Comments
 (0)