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.
This commit is contained in:
Damien George
2017-04-12 13:00:40 +10:00
committed by Paul Sokolovsky
parent 209eaec599
commit 61616e84ce
3 changed files with 13 additions and 13 deletions

View File

@@ -2,4 +2,4 @@ from machine import Pin, Signal
# ESP12 module as used by many boards
# Blue LED on pin 2, active low (inverted)
LED = Signal(Pin(2, Pin.OUT), inverted=True)
LED = Signal(Pin(2, Pin.OUT), invert=True)