6
/ 8
Key
Key Value
(
Decimal
)
Red Key
0
VOL+
1
FUNC/STOP
2
Rwd
4
Pause/Play
5
Fwd
6
Down Triangle
8
VOL-
9
Up Triangle
10
0
12
EQ
13
ST/REPT
14
1
16
2
17
3
18
4
20
5
21
6
22
7
24
8
25
9
26
2. IR Remote control of the beetle
This example uses the infrared remote control to make the beetle pincers
to grasp and release. Each button of the infrared remote control is
corresponding to one key value.
Key value table of infrared remote control
Now, let's program an example to control the angle of the beetle pincers by the
infrared remote control. The code is shown in the figure: