diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-05-21 15:50:16 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-05-21 15:50:16 +0300 |
commit | 3ebd67fc099161b43b61fd18e8e98b8274ebe9b4 (patch) | |
tree | 8630e9f45c34741153f107f45074ab72f7fa9c35 /docs/library | |
parent | 19e065294d4c4f28b8df3859f48958f68e7617e2 (diff) | |
download | micropython-3ebd67fc099161b43b61fd18e8e98b8274ebe9b4.tar.gz micropython-3ebd67fc099161b43b61fd18e8e98b8274ebe9b4.zip |
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.
Diffstat (limited to 'docs/library')
-rw-r--r-- | docs/library/machine.Pin.rst | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/docs/library/machine.Pin.rst b/docs/library/machine.Pin.rst index 6d6ba7bfd9..2efd84688a 100644 --- a/docs/library/machine.Pin.rst +++ b/docs/library/machine.Pin.rst @@ -158,11 +158,6 @@ Methods and get the value of the pin. It is equivalent to Pin.value([x]). See :meth:`Pin.value` for more details. -.. method:: Pin.id() - - Get the pin identifier. This may return the ``id`` as specified in the - constructor. Or it may return a canonical software-specific pin id. - .. method:: Pin.mode([mode]) Get or set the pin mode. @@ -217,19 +212,6 @@ Methods This method returns a callback object. -Attributes ----------- - -.. class:: Pin.board - - Contains all ``Pin`` objects supported by the board. Examples:: - - Pin.board.GP25 - led = Pin(Pin.board.GP25, mode=Pin.OUT) - Pin.board.GP2.alt_list() - - Availability: WiPy. - Constants --------- |