summaryrefslogtreecommitdiff
path: root/docs/esp8266/tutorial/powerctrl.rst
diff options
context:
space:
mode:
authorchrismas9 <c.mason@inchipdesign.com.au>2022-06-26 23:30:37 +1000
committerDamien George <damien@micropython.org>2022-07-29 12:16:32 +1000
commit33ea400ce849777617bf1e8f44b10928530b64b9 (patch)
tree372587d6f7af00f84c2cf83421d1e9bc618efb4a /docs/esp8266/tutorial/powerctrl.rst
parente168d47424eefc15ab74c3c15e363d02deb46fba (diff)
docs/library/pyb.Pin: Add Pin.ALT constant.
Some Pin alternate functions are inputs, for example, timer capture and break inputs. In Pyb.Pin the only way to set alt mode is with Pin.AF_PP or Pin.AF_OD. It is not intuitive to use an output mode to configure an input. Pin.ALT is used in the machine.Pin class and works in pyb.Pin. The examples are changed to use Pin.ALT because TIM2_CH3 can be a capture input or pulse output. Signed-off-by: Chris Mason <c.mason@inchipdesign.com.au>
Diffstat (limited to 'docs/esp8266/tutorial/powerctrl.rst')
0 files changed, 0 insertions, 0 deletions