; ; Sequence Data Format ; ------------------- ; fade_rate, hold_time, red, green, blue (all values in decimal) ; values should be 0 <= value <= 255 ; ; End of current sequence ; ----------------------- ; fade_rate = 255 tells code that this is then end of the current ; sequence data. ; ; End of all sequence data ; ------------------------ ; fade_rate and hold_time = 255 tells the code that this is the end ; of the current sequence data AND the end of all sequences. ; ; Fade Rate ; --------- ; fade_rate = 0 --> no fade, new values update immediateley ; fade_rate >0 and <255 fades from current to new values. ; The colours fade from the current value to the new value ; in steps of 1 (i.e. 0 to 100 requires 100 steps) ; each step takes ~5mS x Fade Rate. ; ; max fade time with increments of 5mS x fade_rate. ; 1 x 5mS x 255 = 1.27 secs ; 2 x 5mS x 255 = 2.50 secs ; 3 x 5mS x 255 = 3.85 secs ; 4 x 5mS x 255 = 5.10 secs ; 5 x 5mS x 255 = 6.35 secs ; 6 x 5mS x 255 = 7.60 secs ; ...... ; 254 x 5mS x 255 = 3m23s ; ; Hold Time ; --------- ; How long to hold the current RGB colours before getting ; the next set of RGB values. ; hold_time = 0 --> no hold, jump to next step in sequence ; hold_time >0 and <255 hold for 50ms x hold_time ; 1 x 50mS = 50mS ; 254 x 50mS = 12.7 secs ; ; ________________ Fade Rate ; | _____________ Hold time ; | | _________ Red ; | | | ____ Green ; | | | | _ Blue ; | | | | | dt 0,5, 255, 0 , 0 ; red on dt 255 ; end of sequence dt 0,5, 0 , 255, 0 ; green on dt 255 ; end of sequence dt 0,5, 0 ,0 ,255 ; blue on dt 255 ; end of sequence dt 0,5, 0 ,255 ,255 ; blue on dt 255 ; end of sequence dt 0,5, 255 ,255 ,0 ; blue on dt 255 ; end of sequence dt 0,5, 255 ,0 ,255 ; blue on dt 255 ; end of sequence ; blink red led dt 0,5,10,0,0 ; dim blue ( dt 0,5,0,0,0 ; off dt 255 ; end of sequence dt 0,5, 20 ,18 , 14 ; 5% white dt 255 ; end of sequence dt 0,5, 128,128,110 ; 50% white dt 255 ; end of sequence dt 0,5, 240,240,220 ; 100% white dt 255 ; end of sequence dt 0,5,10,10,10 ; dim white dt 0,5,0,0,0 ; off dt 255 ; end of sequence dt 2,1,255,10,10 ; fade up red dt 2,1,10,255,10 dt 2,1,10,10,255 dt 255 dt 2,1,255,128,10 dt 2,1,128,255,10 dt 2,1,10,255,128 dt 2,1,10,128,255 dt 2,1,128,10,255 dt 2,1,255,10,128 dt 255 dt 6,1,255,10,10 ; fade up red dt 6,1,10,255,10 dt 6,1,10,10,255 dt 255 dt 6,1,255,128,10 dt 6,1,128,255,10 dt 6,1,10,255,128 dt 6,1,10,128,255 dt 6,1,128,10,255 dt 6,1,255,10,128 dt 255 dt 0,5,0,10,0 ; dim dt 0,5,0,0,0 ; off dt 255 ; end of sequence dt 6,1,255,20,0 dt 6,1,128,128,0 dt 6,1,20,255,0 dt 255 dt 6,1,255,0,20 dt 6,1,128,0,128 dt 6,1,20,0,255 dt 255 dt 6,1, 0,255,20 dt 6,1, 0,128,128 dt 6,1, 0,20,255 dt 255 ;--------------- dt 0,5,10,10,0 ; dim dt 0,5,0,0,0 ; off dt 255 ; end of sequence dt 2,200,255,20,0 dt 2,200,128,128,0 dt 2,200,20,255,0 dt 255 dt 2,200,255,0,20 dt 2,200,128,0,128 dt 2,200,20,0,255 dt 255 dt 2,200, 0,255,20 dt 2,200, 0,128,128 dt 2,200, 0,20,255 dt 255 dt 0,2,0,10,10 ; dim dt 0,7,0,0,0 ; off dt 255 ; end of sequence dt 8,1, 255,128,128 dt 8,1, 128,255,128 dt 8,1, 128,128,255 dt 255 dt 8,1, 255,160,96 dt 8,1, 160,96,255 dt 8,1, 96,255,160 dt 255 dt 15,1, 255,128,64 dt 15,1, 128,64,255 dt 15,1, 64,255,128 dt 255 dt 15,1, 255,96,32 dt 15,1, 96,32,255 dt 15,1, 32,255,96 dt 255 dt 0,1,0,30,10 ; dim dt 0,7,0,0,0 ; off dt 255 ; end of sequence dt 22,1, 255,10,0 dt 22,1, 160,24,0 dt 22,1, 255,48,0 dt 22,1, 132,32,0 dt 255 ; blink blue led dt 0,5,0,0,10 ; dim blue ( dt 0,5,0,0,0 ; off dt 255 ; end of sequence dt 255 ; end of all data