We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eaf56fa commit 473d92eCopy full SHA for 473d92e
1 file changed
PyPortal_Smart_Switch/code.py
@@ -89,7 +89,8 @@ class Switch(object):
89
def __init__(self, pin, my_pyportal):
90
self.switch = digitalio.DigitalInOut(pin)
91
self.switch.direction = digitalio.Direction.OUTPUT
92
- 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,
93
+ fill=SWITCH_FILL_COLOR, stroke=3)
94
my_pyportal.splash.append(rect)
95
self.circle_on = Circle(SWITCHX + 15, SWITCHY + 16, 10, fill=SWITCH_FILL_COLOR)
96
my_pyportal.splash.append(self.circle_on)
0 commit comments