diff --git a/sets/boost/creative-toolbox/auto-builder/README.md b/sets/boost/creative-toolbox/auto-builder/README.md index 44017c9..99c6eaf 100644 --- a/sets/boost/creative-toolbox/auto-builder/README.md +++ b/sets/boost/creative-toolbox/auto-builder/README.md @@ -30,6 +30,7 @@ This works by repeatedly: The brick positions are given as the degrees the belt motor turns relative to the base position. You can tweak these values by a few degrees if needed. +{% include copy-code.html %} ```python {% include_relative main.py %} ``` diff --git a/sets/city/60198-cargo-train/slope-detection/README.md b/sets/city/60198-cargo-train/slope-detection/README.md index 97e4568..67271fc 100644 --- a/sets/city/60198-cargo-train/slope-detection/README.md +++ b/sets/city/60198-cargo-train/slope-detection/README.md @@ -32,6 +32,7 @@ Connect the motor to port A and connect the tilt sensor to port B. This program makes the train drive until it detects a slope of 8 degrees or more. Then it drives back down. +{% include copy-code.html %} ```python {% include_relative main.py %} ``` diff --git a/sets/mindstorms/robot-inventor/steerbot/README.md b/sets/mindstorms/robot-inventor/steerbot/README.md index 94e8333..8dd027f 100644 --- a/sets/mindstorms/robot-inventor/steerbot/README.md +++ b/sets/mindstorms/robot-inventor/steerbot/README.md @@ -48,6 +48,7 @@ speed without running off the line. ## Program +{% include copy-code.html %} ```python {% include_relative main.py %} ``` diff --git a/sets/technic/42099-off-roader/driving/README.md b/sets/technic/42099-off-roader/driving/README.md index 7b51736..52fbc2e 100644 --- a/sets/technic/42099-off-roader/driving/README.md +++ b/sets/technic/42099-off-roader/driving/README.md @@ -19,6 +19,7 @@ This program centers the steering motor, and defines a function called ``drive`` which can be used to control the vehicle. Further details are given as comments in the program. +{% include copy-code.html %} ```python {% include_relative main.py %} ``` diff --git a/sets/technic/42099-off-roader/keyboard-remote/README.md b/sets/technic/42099-off-roader/keyboard-remote/README.md index 9093f7d..f78828d 100644 --- a/sets/technic/42099-off-roader/keyboard-remote/README.md +++ b/sets/technic/42099-off-roader/keyboard-remote/README.md @@ -24,6 +24,7 @@ You can read keyboard presses using `stdin`, as shown in the example below. Then you can make your program choose different behaviors based on which key is pressed. +{% include copy-code.html %} ```python {% include_relative remote.py %} ``` @@ -36,6 +37,7 @@ the [basic driving program](../driving). This allows you to control the truck using the numeric keys on your keyboard. If your keyboard does not have separate numeric keys, just adapt the program to use other keys. +{% include copy-code.html %} ```python {% include_relative main.py %} ``` diff --git a/sets/technic/42099-off-roader/obstacle-avoidance/README.md b/sets/technic/42099-off-roader/obstacle-avoidance/README.md index 935534d..b1ffdf0 100644 --- a/sets/technic/42099-off-roader/obstacle-avoidance/README.md +++ b/sets/technic/42099-off-roader/obstacle-avoidance/README.md @@ -28,6 +28,7 @@ Mount the sensor somewhere on the front of your truck. This program builds on the basic [driving example](../driving). It makes the truck back up and turn when it detects an obstacle. +{% include copy-code.html %} ```python {% include_relative main.py %} ```