Skip to content

Commit 48cf499

Browse files
committed
Update picozero.py
inherit from DigitalInputDevice - makes more semantic sense than Button
1 parent f640082 commit 48cf499

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

picozero/picozero.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2027,6 +2027,7 @@ def __init__(self, pin, pull_up=False, bounce_time=1.00):
20272027
MotionSensor.when_motion = MotionSensor.when_activated
20282028
MotionSensor.when_no_motion = MotionSensor.when_deactivated
20292029

2030+
20302031
class TouchSensor(Button):
20312032
"""
20322033
Represents a capacitive touch sensor (e.g. TTP223)

0 commit comments

Comments
 (0)