User manual
27
Address
Command
Data
Comment
08
3
8
Jump –8
11 28 12 28 14 28 18 28 38
Listing 10: Running light 1
Expand the programme with two more output patterns, so that the light point runs back and
forth. Experiment with other output patterns and delay times as well.
Address
Command
Data
Comment
00
1
1
LEDs 0001
01
2
8
Wait for 500 ms
02
1
2
LEDs 0010
03
2
8
Wait for 500 ms
04
1
4
LEDs 0100
05
2
8
Wait for 500 ms
06
1
8
LEDs 1000
07
2
8
Wait for 500 ms
08
1
4
LEDs 0100
09
2
8
Wait for 500 ms
0A
1
2
LEDs 0010
0B
2
8
Wait for 500 ms
0C
3
C
Jump –12
11 28 12 28 14 28 18 28 14 28 12 28 3C
Listing 11: Running light 2, back and forth
A time switch may contain a delay of up to one minute with a waiting command. At the end,
there is a jump back with the jump width 0, i.e. an endless loop without content, which serves as
the end of the programme. Restart is triggered with the reset button. Expand the programme into
a three-minute kitchen timer. You can display the remaining time by the number of lit LEDs as a
light bar.
Address
Command
Data
Comment
00
1
F
LEDs 1111
01
2
F
Wait for 1 min
02
1
0
LEDs 0000
03
3
0
End
1F 2F 10 30
Listing 12: Time switch for one minute