summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp8266/tutorial/onewire.rst
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-04-11 00:12:20 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-04-11 00:12:20 +0300
commit605ff91efdeb3cd7e4948c0398c839a9ae06044a (patch)
tree1772f83cc46dff962ad5d3be7e1777db2e5c8e0f /docs/esp8266/tutorial/onewire.rst
parent79ce6649524b08732e15d86c4ff61266c3ec14ed (diff)
downloadmicropython-605ff91efdeb3cd7e4948c0398c839a9ae06044a.tar.gz
micropython-605ff91efdeb3cd7e4948c0398c839a9ae06044a.zip
extmod/machine_signal: Support all Pin's arguments to the constructor.
This implements the orginal idea is that Signal is a subclass of Pin, and thus can accept all the same argument as Pin, and additionally, "inverted" param. On the practical side, it allows to avoid many enclosed parenses for a typical declararion, e.g. for Zephyr: Signal(Pin(("GPIO_0", 1))). Of course, passing a Pin to Signal constructor is still supported and is the most generic form (e.g. Unix port will only support such form, as it doesn't have "builtin" Pins), what's introduces here is just practical readability optimization. "value" kwarg is treated as applying to a Signal (i.e. accounts for possible inversion).
Diffstat (limited to 'docs/esp8266/tutorial/onewire.rst')
0 files changed, 0 insertions, 0 deletions