Subversion Repositories svn.mios32

Rev

Rev 2248 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2225 tk 1
# how to control WS2812 based RGB LEDs
2
 
3
# Reset to default
4
RESET_HW
5
 
6
# LCD message after load
7
LCD "%C@(1:1:1)RGB LED Test"
8
 
9
# EVENTs
10
 
11
# LED will change hue in range of 0..127 (for larger range a NRPN is required)
2248 tk 12
EVENT_RGBLED id=1  hsv=0:100:20    type=CC chn=1 cc=16 range=0:127 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_rgb"
2225 tk 13
 
14
# LED will change hue in range of 127..0 (reversed)
2248 tk 15
EVENT_RGBLED id=2  hsv=0:100:20    type=CC chn=1 cc=17 range=127:0 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_rgb"
2225 tk 16
 
17
# LED will change hue in range of 200..300 (hue offset defined with hsv parameter) - values >100 saturate to 100
2248 tk 18
EVENT_RGBLED id=3  hsv=200:100:20  type=CC chn=1 cc=18 range=0:100 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_rgb"
2225 tk 19
 
20
# LED will change hue in range of 300..200 (hue offset defined with hsv parameter) - values >100 saturate to 100
2248 tk 21
EVENT_RGBLED id=4  hsv=200:100:20  type=CC chn=1 cc=19 range=100:0 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_rgb"
2225 tk 22
 
23
# LED will change brightness (v) based on value (hue statically defined)
2248 tk 24
EVENT_RGBLED id=5  hsv=120:100:20  dimmed=1 type=CC chn=1 cc=20 range=0:100 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_rgb"
2225 tk 25
 
26
# LED has a RGB definition
27
# we expect that the LED will be turned on/off depending on value
28
# note that r/g/b are 4bit values, they will be scaled up to 8bit
2248 tk 29
EVENT_RGBLED id=6  rgb=15:3:7               type=CC chn=1 cc=21 range=0:127 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_rgb"
2225 tk 30
 
31
# LED has a RGB definition + dimmed=1
32
# we expect that the LED will dimmed between the specified levels
2248 tk 33
EVENT_RGBLED id=7  rgb=15:3:7 dimmed=1      type=CC chn=1 cc=22 range=0:127 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_rgb"
2225 tk 34
 
35
 
36
# some buttons set the 8th LED to different hues + dimming depending on velocity value (if the appr. MIDI event is received)
37
EVENT_BUTTON id=1  type=NoteOn key=48 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_btn"  fwd_id=RGBLED:8  hsv=0:100:40    dimmed=1
38
EVENT_BUTTON id=2  type=NoteOn key=49 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_btn"  fwd_id=RGBLED:8  hsv=20:100:40   dimmed=1
39
EVENT_BUTTON id=3  type=NoteOn key=50 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_btn"  fwd_id=RGBLED:8  hsv=40:100:40   dimmed=1
40
EVENT_BUTTON id=4  type=NoteOn key=51 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_btn"  fwd_id=RGBLED:8  hsv=60:100:40   dimmed=1
41
EVENT_BUTTON id=5  type=NoteOn key=52 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_btn"  fwd_id=RGBLED:8  hsv=80:100:40   dimmed=1
42
EVENT_BUTTON id=6  type=NoteOn key=53 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_btn"  fwd_id=RGBLED:8  hsv=100:100:40  dimmed=1
43
EVENT_BUTTON id=7  type=NoteOn key=54 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_btn"  fwd_id=RGBLED:8  hsv=120:100:40  dimmed=1
44
EVENT_BUTTON id=8  type=NoteOn key=55 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_btn"  fwd_id=RGBLED:8  hsv=140:100:40  dimmed=1
45
EVENT_BUTTON id=9  type=NoteOn key=56 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_btn"  fwd_id=RGBLED:8  hsv=160:100:40  dimmed=1
46
EVENT_BUTTON id=10 type=NoteOn key=57 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_btn"  fwd_id=RGBLED:8  hsv=180:100:40  dimmed=1
47
EVENT_BUTTON id=11 type=NoteOn key=58 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_btn"  fwd_id=RGBLED:8  hsv=200:100:40  dimmed=1
48
EVENT_BUTTON id=12 type=NoteOn key=59 fwd_to_lcd=1 lcd_pos=1:1:2 label="^std_btn"  fwd_id=RGBLED:8  hsv=220:100:40  dimmed=1