Skip to content

Commit d9a4c5b

Browse files
committed
Update changelog and example for TouchSensor class integration
1 parent 02daf32 commit d9a4c5b

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

docs/changelog.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ Change log
77
-----------
88

99
+ Introduced ``Stepper`` class for stepper motors
10+
+ Introduced ``TouchSensor`` class for capacitive touch sensors
11+
+ Updated tests and documentation
12+
+ Other minor bug fixes
13+
1014

1115
0.5.2 - 2025-11-26
1216
-----------
@@ -22,7 +26,6 @@ Change log
2226
-----------
2327

2428
+ Introduced ``MotionSensor`` class for PIR sensors
25-
+ Introduced ``TouchSensor`` class for capacitive touch sensors
2629

2730
0.4.2 - 2023-05-12
2831
------------------

docs/examples/touch_sensor_callbacks.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,5 @@
33

44
touch = TouchSensor(2)
55

6-
# Set up event callbacks
7-
touch.when_touched = pico_led.on
6+
touch.when_touch_starts = pico_led.on
87
touch.when_touch_ends = pico_led.off
9-
10-
# Keep the program running
11-
try:
12-
while True:
13-
sleep(1)
14-
except KeyboardInterrupt:
15-
pico_led.off() # Make sure LED is off when exiting

0 commit comments

Comments
 (0)