mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 09:37:25 +00:00
pybricks.pupdevices.UltrasonicSensor: Move cleanup example.
Also generalize the example so that it can be used on all hubs.
This commit is contained in:
committed by
laurensvalk
parent
65c81834c9
commit
ffb2f8aa96
@@ -235,10 +235,3 @@ Turning the hub off
|
||||
|
||||
.. literalinclude::
|
||||
../../../examples/pup/hub_primehub/system_shutdown.py
|
||||
|
||||
Clean up after program stop
|
||||
*****************************************
|
||||
|
||||
.. literalinclude::
|
||||
../../../examples/pup/hub_primehub/cleanup.py
|
||||
|
||||
|
||||
@@ -36,3 +36,9 @@ Gradually change the brightness of the lights
|
||||
|
||||
.. literalinclude::
|
||||
../../../examples/pup/sensor_ultrasonic/math.py
|
||||
|
||||
Turn off the lights when the program ends
|
||||
**********************************************
|
||||
|
||||
.. literalinclude::
|
||||
../../../examples/pup/sensor_ultrasonic/cleanup.py
|
||||
|
||||
Reference in New Issue
Block a user