File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff 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
11150.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
27300.4.2 - 2023-05-12
2831------------------
Original file line number Diff line number Diff line change 33
44touch = TouchSensor (2 )
55
6- # Set up event callbacks
7- touch .when_touched = pico_led .on
6+ touch .when_touch_starts = pico_led .on
87touch .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
You can’t perform that action at this time.
0 commit comments