Subversion Repositories svn.mios32

Rev

Rev 2221 | Details | Compare with Previous | 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
 
2221 tk 10
# prepared for Common-Anode RGB LED, therefore dim values are inverted! (15 - dim_level)
11
 
2220 tk 12
MAP1    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  15  15  15  15  15  15  15  15  15  15  \
15
        15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  \
16
        15  15  15  15  15  15  14  14  13  13  12  12  11  11  10  10  \
17
        9   9   8   7   7   6   6   5   5   4   4   3   3   2   2   1   \
18
        1   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   \
19
 
20
 
21
MAP2    15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  14  \
22
        14  14  14  13  13  13  12  12  11  11  11  10  10  9   8   8   \
23
        7   7   6   5   5   4   3   3   3   2   2   2   1   1   1   0   \
24
 
25
 
26
 
27
 
28
        7   7   8   9   9   10  10  11  11  12  12  13  13  14  14  15
29
 
30
MAP3    15  15  15  15  14  14  14  13  13  13  12  12  12  11  11  11  \
31
        10  10  10  9   9   9   8   8   8   7   7   7   7   6   6   6   \
32
        5   5   5   4   4   4   3   3   4   4   4   4   4   4   5   5   \
33
        5   6   6   6   7   7   8   9   9   10  10  11  11  12  12  13  \
34
        13  14  14  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
        15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  \
37
        15  15  15  15  15  15  15  15  15  15  15  15  15  15  15  15
38
 
39
 
40
# common anode connected Vdd
41
# RGB connected to LED:1..3 (SR1, D7..D5)
42
EVENT_LED id=1 dimmed=1 range=map1 type=CC chn=1 cc=16
43
EVENT_LED id=2 dimmed=1 range=map2 type=CC chn=1 cc=16
44
EVENT_LED id=3 dimmed=1 range=map3 type=CC chn=1 cc=16
45
 
46
 
47
# the three LEDs are controlled from the SCS encoder
48
# the SCS should emulate button/enc functions in main page
49
SCS soft1_button_emu_id=2000 \
50
    soft2_button_emu_id=2001 \
51
    soft3_button_emu_id=2002 \
52
    soft4_button_emu_id=2003 \
53
    shift_button_emu_id=2004 \
54
    enc_emu_id=2000
55
 
56
EVENT_ENC id=2000 range=0:127 enc_speed_mode=Fast:3 fwd_id=SENDER:1 lcd_pos=1:1:2 label="Value: %3d"
57
 
58
# 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
59
EVENT_SENDER hw_id=1 id=100 fwd_id=LED:1
60
EVENT_SENDER hw_id=1 id=200 fwd_id=LED:2
61
EVENT_SENDER hw_id=1 id=300 fwd_id=LED:3