Subversion Repositories svn.mios32

Rev

Rev 2221 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2220 tk 1
# Reset to default
2
RESET_HW
3
 
4
LCD "%C@(1:1:1)Multicolour Test"
5
 
6
# Fade-in the three LEDs over 16 brightness levels
7
# All three LEDs are assigned to the same MIDI event, but they range over different value maps which specify the brightness
8
# maps have been generated with generated with tools/gen_colour_maps.pl
9
 
10
MAP1    15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  \
11
        15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  \
12
        15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  \
13
        15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  \
14
        15  15  15  15  15  15  14  14  13  13  12  12  11  11  10  10  \
15
        9   9   8   7   7   6   6   5   5   4   4   3   3   2   2   1   \
16
        1   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   \
17
 
18
 
19
MAP2    15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  14  \
20
        14  14  14  13  13  13  12  12  11  11  11  10  10  9   8   8   \
21
        7   7   6   5   5   4   3   3   3   2   2   2   1   1   1   0   \
22
 
23
 
24
 
25
 
26
        7   7   8   9   9   10  10  11  11  12  12  13  13  14  14  15
27
 
28
MAP3    15  15  15  15  14  14  14  13  13  13  12  12  12  11  11  11  \
29
        10  10  10  9   9   9   8   8   8   7   7   7   7   6   6   6   \
30
        5   5   5   4   4   4   3   3   4   4   4   4   4   4   5   5   \
31
        5   6   6   6   7   7   8   9   9   10  10  11  11  12  12  13  \
32
        13  14  14  15  15  15  15  15  15  15  15  15  15  15  15  15  \
33
        15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  \
34
        15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  \
35
        15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  15
36
 
37
 
38
# common anode connected Vdd
39
# RGB connected to LED:1..3 (SR1, D7..D5)
40
EVENT_LED id=1 dimmed=1 range=map1 type=CC chn=1 cc=16
41
EVENT_LED id=2 dimmed=1 range=map2 type=CC chn=1 cc=16
42
EVENT_LED id=3 dimmed=1 range=map3 type=CC chn=1 cc=16
43
 
44
 
45
# the three LEDs are controlled from the SCS encoder
46
# the SCS should emulate button/enc functions in main page
47
SCS soft1_button_emu_id=2000 \
48
    soft2_button_emu_id=2001 \
49
    soft3_button_emu_id=2002 \
50
    soft4_button_emu_id=2003 \
51
    shift_button_emu_id=2004 \
52
    enc_emu_id=2000
53
 
54
EVENT_ENC id=2000 range=0:127 enc_speed_mode=Fast:3 fwd_id=SENDER:1 lcd_pos=1:1:2 label="Value: %3d"
55
 
56
# ENC forwards to SENDER:1, and we define 3 senders which are assigned to this hw_id in order to forward the value to the R/G/B LEDs
57
EVENT_SENDER hw_id=1 id=100 fwd_id=LED:1
58
EVENT_SENDER hw_id=1 id=200 fwd_id=LED:2
59
EVENT_SENDER hw_id=1 id=300 fwd_id=LED:3