Skip to content

Commit f9aaa67

Browse files
authored
Update picozero.py
inherit from DigitalInputDevice - makes more semantic sense than Button
1 parent cd6277e commit f9aaa67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

picozero/picozero.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1999,7 +1999,7 @@ class Button(Switch):
19991999
Button.when_released = Button.when_deactivated
20002000

20012001

2002-
class TouchSensor(Button):
2002+
class TouchSensor(DigitalInputDevice):
20032003
"""
20042004
Represents a capacitive touch sensor (e.g. TTP223)
20052005

0 commit comments

Comments
 (0)