pylint fix
This commit is contained in:
parent
eaf56fa836
commit
473d92eb20
1 changed files with 2 additions and 1 deletions
|
|
@ -89,7 +89,8 @@ class Switch(object):
|
|||
def __init__(self, pin, my_pyportal):
|
||||
self.switch = digitalio.DigitalInOut(pin)
|
||||
self.switch.direction = digitalio.Direction.OUTPUT
|
||||
rect = RoundRect(SWITCHX, SWITCHY, 31, 60, 16, outline=SWITCH_COLOR, fill=SWITCH_FILL_COLOR, stroke=3)
|
||||
rect = RoundRect(SWITCHX, SWITCHY, 31, 60, 16, outline=SWITCH_COLOR,
|
||||
fill=SWITCH_FILL_COLOR, stroke=3)
|
||||
my_pyportal.splash.append(rect)
|
||||
self.circle_on = Circle(SWITCHX + 15, SWITCHY + 16, 10, fill=SWITCH_FILL_COLOR)
|
||||
my_pyportal.splash.append(self.circle_on)
|
||||
|
|
|
|||
Loading…
Reference in a new issue