summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/machine_signal.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-04-12 13:00:40 +1000
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-04-15 21:01:47 +0300
commit61616e84ce41e1b1a0fad62704488d79b87cfbe2 (patch)
treef027bc3c3d532e94331c2e898aff1ba16a8e3466 /tests/extmod/machine_signal.py
parent209eaec599b8b849dbef45fdb2d8f7138b8b7745 (diff)
downloadmicropython-61616e84ce41e1b1a0fad62704488d79b87cfbe2.tar.gz
micropython-61616e84ce41e1b1a0fad62704488d79b87cfbe2.zip
extmod/machine_signal: Rename "inverted" arg to "invert", it's shorter.
A shorter name takes less code size, less room in scripts and is faster to type at the REPL. Tests and HW-API examples are updated to reflect the change.
Diffstat (limited to 'tests/extmod/machine_signal.py')
-rw-r--r--tests/extmod/machine_signal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/extmod/machine_signal.py b/tests/extmod/machine_signal.py
index 401533f230..96b8f43c73 100644
--- a/tests/extmod/machine_signal.py
+++ b/tests/extmod/machine_signal.py
@@ -33,7 +33,7 @@ print(p.value(), s.value())
# test inverted, and using on/off methods
p = Pin()
-s = machine.Signal(p, inverted=True)
+s = machine.Signal(p, invert=True)
s.off()
print(p.value(), s.value())
s.on()