diff options
author | Daniel Campora <daniel@wipy.io> | 2015-09-13 15:31:17 +0200 |
---|---|---|
committer | Daniel Campora <daniel@wipy.io> | 2015-09-16 10:10:24 +0200 |
commit | d5ec336eefc8d892a1182da747d825155fcecb15 (patch) | |
tree | ba86073fadcc063eaf7e421de73a2363a99dbd6a /docs/library/pyb.Pin.rst | |
parent | f38d16483a41313bedef683d331c8cb26af50f14 (diff) | |
download | micropython-d5ec336eefc8d892a1182da747d825155fcecb15.tar.gz micropython-d5ec336eefc8d892a1182da747d825155fcecb15.zip |
cc3200: Replace Pin.PULL_NONE with None.
Diffstat (limited to 'docs/library/pyb.Pin.rst')
-rw-r--r-- | docs/library/pyb.Pin.rst | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/docs/library/pyb.Pin.rst b/docs/library/pyb.Pin.rst index bfe8ab8cef..01bd54fcee 100644 --- a/docs/library/pyb.Pin.rst +++ b/docs/library/pyb.Pin.rst @@ -67,7 +67,7 @@ Usage Model: Board pins are identified by their string id:: - g = pyb.Pin('GP9', mode=pyb.Pin.OUT, pull=pyb.Pin.PULL_NONE, drive=pyb.Pin.MED_POWER, alt=-1) + g = pyb.Pin('GP9', mode=pyb.Pin.OUT, pull=None, drive=pyb.Pin.MED_POWER, alt=-1) You can also configure the Pin to generate interrupts. For instance:: @@ -165,7 +165,7 @@ Methods - ``pull`` can be one of: - - ``Pin.PULL_NONE`` - no pull up or down resistor. + - ``None`` - no pull up or down resistor. - ``Pin.PULL_UP`` - pull up resistor enabled. - ``Pin.PULL_DOWN`` - pull down resitor enabled. @@ -349,13 +349,11 @@ Constants Selects the pin mode. - .. data:: Pin.PULL_NONE - .. data:: Pin.PULL_UP .. data:: Pin.PULL_DOWN - Selectes the wether there's pull up/down resistor, or none. + Selectes the wether there's pull up/down resistor. .. data:: Pin.LOW_POWER |