Skip to content

Commit 924d383

Browse files
committed
tutorials/wireless: Add PC communication example.
1 parent df0b372 commit 924d383

File tree

17 files changed

+790
-14
lines changed

17 files changed

+790
-14
lines changed

sets/technic/42099-off-roader/keyboard-remote/index.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,13 @@ code: "#the-remote-control-program"
1515
# How it works
1616

1717
Your MicroPython programs can produce *output* using the `print` command, but
18-
it can also read *input*. To enter input, just click on the terminal window
19-
and press some keys.
20-
21-
![](./terminalwindow.png)
22-
23-
You can read keyboard presses using `stdin`, as shown in the example below.
24-
Then you can make your program choose different behaviors based on which key
25-
is pressed.
26-
27-
{% include copy-code.html %}
28-
```python
29-
{% include_relative remote.py %}
30-
```
18+
it can also read *input*. You can learn more about this
19+
in [this tutorial](../../../../tutorials/wireless/hub-to-device/pc-keyboard/).
3120

3221

3322
# The remote control program
3423

35-
This program combines the keyboard example shown above with
24+
This program combines the keyboard example linked above with
3625
the [basic driving program](../driving). This allows you to control the
3726
truck using the numeric keys on your keyboard. If your keyboard does not have
3827
separate numeric keys, just adapt the program to use other keys.

0 commit comments

Comments
 (0)