chromic RGB driver command interpreter 1.1.0 -------------------------------------------- Serial bit rate is : 9600 Port is : com2 Command file is : example3.txt Debug mode ON Verbose mode ON -------------------------------------------- Declaring subroutine 'redFade' Declaring subroutine 'blueFade' Declaring subroutine 'blackOut' Declaring subroutine 'colourWave' 1: # Example3 2: # picprojects.org.uk 3: # 4: 5: print "Running "Example3.txt" demo script" Running "Example3.txt" demo script 6: 7: define address test3 = 0,16,32 8: define address test2 = 0,32 9: 10: define colour dimWhite = 20,20,20 Defining R= 20, G= 20, B= 20 as dimWhite 11: define colour midWhite = 80,80,80 Defining R= 80, G= 80, B= 80 as midWhite 12: define colour brightWhite = 250,250,250 Defining R=250, G=250, B=250 as brightWhite 13: 14: 15: repeat 10 Start loop # 1 16: select from redFade, blueFade, blackOut, colourWave Select is calling redFade 22: print "redFade" redFade 23: colour red fade 5 to test2 Sending-> command:255 | address:0 | data: 255 0 0 5 | chksum:253 Sending-> command:255 | address:32 | data: 255 0 0 5 | chksum:221 24: colour red fade 2 to 16 Sending-> command:255 | address:16 | data: 255 0 0 2 | chksum:240 25: transfer to all Sending-> command:254 | address:255 | data: 1 0 1 0 | chksum:1 26: pause 5 pausing for 5 seconds 27: return Return from call 17: next repeat loop # 1 16: select from redFade, blueFade, blackOut, colourWave Select is calling blueFade 30: print "blueFade" blueFade 31: colour blue fade 2 to all Sending-> command:255 | address:255 | data: 0 0 255 2 | chksum:1 32: colour blue fade 3 to 16 Sending-> command:255 | address:16 | data: 0 0 255 3 | chksum:239 33: transfer to all Sending-> command:254 | address:255 | data: 1 0 1 0 | chksum:1 34: pause 5 pausing for 5 seconds 35: return Return from call 17: next repeat loop # 1 16: select from redFade, blueFade, blackOut, colourWave Select is calling redFade 22: print "redFade" redFade 23: colour red fade 5 to test2 Sending-> command:255 | address:0 | data: 255 0 0 5 | chksum:253 Sending-> command:255 | address:32 | data: 255 0 0 5 | chksum:221 24: colour red fade 2 to 16 Sending-> command:255 | address:16 | data: 255 0 0 2 | chksum:240 25: transfer to all Sending-> command:254 | address:255 | data: 1 0 1 0 | chksum:1 26: pause 5 pausing for 5 seconds 27: return Return from call 17: next repeat loop # 1 16: select from redFade, blueFade, blackOut, colourWave Select is calling blueFade 30: print "blueFade" blueFade 31: colour blue fade 2 to all Sending-> command:255 | address:255 | data: 0 0 255 2 | chksum:1 32: colour blue fade 3 to 16 Sending-> command:255 | address:16 | data: 0 0 255 3 | chksum:239 33: transfer to all Sending-> command:254 | address:255 | data: 1 0 1 0 | chksum:1 34: pause 5 pausing for 5 seconds 35: return Return from call 17: next repeat loop # 1 16: select from redFade, blueFade, blackOut, colourWave Select is calling redFade 22: print "redFade" redFade 23: colour red fade 5 to test2 Sending-> command:255 | address:0 | data: 255 0 0 5 | chksum:253 Sending-> command:255 | address:32 | data: 255 0 0 5 | chksum:221 24: colour red fade 2 to 16 Sending-> command:255 | address:16 | data: 255 0 0 2 | chksum:240 25: transfer to all Sending-> command:254 | address:255 | data: 1 0 1 0 | chksum:1 26: pause 5 pausing for 5 seconds 27: return Return from call 17: next repeat loop # 1 16: select from redFade, blueFade, blackOut, colourWave Select is calling blackOut 38: print "blackOut" blackOut 39: colour black nofade to all Sending-> command:255 | address:255 | data: 0 0 0 0 | chksum:2 40: transfer to all Sending-> command:254 | address:255 | data: 1 0 1 0 | chksum:1 41: return Return from call 17: next repeat loop # 1 16: select from redFade, blueFade, blackOut, colourWave Select is calling redFade 22: print "redFade" redFade 23: colour red fade 5 to test2 Sending-> command:255 | address:0 | data: 255 0 0 5 | chksum:253 Sending-> command:255 | address:32 | data: 255 0 0 5 | chksum:221 24: colour red fade 2 to 16 Sending-> command:255 | address:16 | data: 255 0 0 2 | chksum:240 25: transfer to all Sending-> command:254 | address:255 | data: 1 0 1 0 | chksum:1 26: pause 5 pausing for 5 seconds 27: return Return from call 17: next repeat loop # 1 16: select from redFade, blueFade, blackOut, colourWave Select is calling colourWave 44: print "colourWave" colourWave 45: repeat 3 Start loop # 2 46: colour red fade 2 to all Sending-> command:255 | address:255 | data: 255 0 0 2 | chksum:1 47: transfer to 0 Sending-> command:254 | address:0 | data: 1 0 1 0 | chksum:0 48: pause 1 pausing for 1 seconds 49: transfer to 16 Sending-> command:254 | address:16 | data: 1 0 1 0 | chksum:240 50: pause 1 pausing for 1 seconds 51: transfer to 32 Sending-> command:254 | address:32 | data: 1 0 1 0 | chksum:224 52: pause 1 pausing for 1 seconds 53: 54: colour green fade 2 to all Sending-> command:255 | address:255 | data: 0 255 0 2 | chksum:1 55: transfer to 0 Sending-> command:254 | address:0 | data: 1 0 1 0 | chksum:0 56: pause 1 pausing for 1 seconds 57: transfer to 16 Sending-> command:254 | address:16 | data: 1 0 1 0 | chksum:240 58: pause 1 pausing for 1 seconds 59: transfer to 32 Sending-> command:254 | address:32 | data: 1 0 1 0 | chksum:224 60: pause 1 pausing for 1 seconds 61: 62: colour blue fade 2 to all Sending-> command:255 | address:255 | data: 0 0 255 2 | chksum:1 63: transfer to 0 Sending-> command:254 | address:0 | data: 1 0 1 0 | chksum:0 64: pause 1 pausing for 1 seconds 65: transfer to 16 Sending-> command:254 | address:16 | data: 1 0 1 0 | chksum:240 66: pause 1 pausing for 1 seconds 67: transfer to 32 Sending-> command:254 | address:32 | data: 1 0 1 0 | chksum:224 68: pause 1 pausing for 1 seconds 69: next repeat loop # 2 46: colour red fade 2 to all Sending-> command:255 | address:255 | data: 255 0 0 2 | chksum:1 47: transfer to 0 Sending-> command:254 | address:0 | data: 1 0 1 0 | chksum:0 48: pause 1 pausing for 1 seconds 49: transfer to 16 Sending-> command:254 | address:16 | data: 1 0 1 0 | chksum:240 50: pause 1 pausing for 1 seconds 51: transfer to 32 Sending-> command:254 | address:32 | data: 1 0 1 0 | chksum:224 52: pause 1 pausing for 1 seconds 53: 54: colour green fade 2 to all Sending-> command:255 | address:255 | data: 0 255 0 2 | chksum:1 55: transfer to 0 Sending-> command:254 | address:0 | data: 1 0 1 0 | chksum:0 56: pause 1 pausing for 1 seconds 57: transfer to 16 Sending-> command:254 | address:16 | data: 1 0 1 0 | chksum:240 58: pause 1 pausing for 1 seconds 59: transfer to 32 Sending-> command:254 | address:32 | data: 1 0 1 0 | chksum:224 60: pause 1 pausing for 1 seconds 61: 62: colour blue fade 2 to all Sending-> command:255 | address:255 | data: 0 0 255 2 | chksum:1 63: transfer to 0 Sending-> command:254 | address:0 | data: 1 0 1 0 | chksum:0 64: pause 1 pausing for 1 seconds 65: transfer to 16 Sending-> command:254 | address:16 | data: 1 0 1 0 | chksum:240 66: pause 1 pausing for 1 seconds 67: transfer to 32 Sending-> command:254 | address:32 | data: 1 0 1 0 | chksum:224 68: pause 1 pausing for 1 seconds 69: next repeat loop # 2 46: colour red fade 2 to all Sending-> command:255 | address:255 | data: 255 0 0 2 | chksum:1 47: transfer to 0 Sending-> command:254 | address:0 | data: 1 0 1 0 | chksum:0 48: pause 1 pausing for 1 seconds 49: transfer to 16 Sending-> command:254 | address:16 | data: 1 0 1 0 | chksum:240 50: pause 1 pausing for 1 seconds 51: transfer to 32 Sending-> command:254 | address:32 | data: 1 0 1 0 | chksum:224 52: pause 1 pausing for 1 seconds 53: 54: colour green fade 2 to all Sending-> command:255 | address:255 | data: 0 255 0 2 | chksum:1 55: transfer to 0 Sending-> command:254 | address:0 | data: 1 0 1 0 | chksum:0 56: pause 1 pausing for 1 seconds 57: transfer to 16 Sending-> command:254 | address:16 | data: 1 0 1 0 | chksum:240 58: pause 1 pausing for 1 seconds 59: transfer to 32 Sending-> command:254 | address:32 | data: 1 0 1 0 | chksum:224 60: pause 1 pausing for 1 seconds 61: 62: colour blue fade 2 to all Sending-> command:255 | address:255 | data: 0 0 255 2 | chksum:1 63: transfer to 0 Sending-> command:254 | address:0 | data: 1 0 1 0 | chksum:0 64: pause 1 pausing for 1 seconds 65: transfer to 16 Sending-> command:254 | address:16 | data: 1 0 1 0 | chksum:240 66: pause 1 pausing for 1 seconds 67: transfer to 32 Sending-> command:254 | address:32 | data: 1 0 1 0 | chksum:224 68: pause 1 pausing for 1 seconds 69: next end loop # 2 70: return Return from call 17: next repeat loop # 1 16: select from redFade, blueFade, blackOut, colourWave Select is calling blackOut 38: print "blackOut" blackOut 39: colour black nofade to all Sending-> command:255 | address:255 | data: 0 0 0 0 | chksum:2 40: transfer to all Sending-> command:254 | address:255 | data: 1 0 1 0 | chksum:1 41: return Return from call 17: next repeat loop # 1 16: select from redFade, blueFade, blackOut, colourWave Select is calling redFade 22: print "redFade" redFade 23: colour red fade 5 to test2 Sending-> command:255 | address:0 | data: 255 0 0 5 | chksum:253 Sending-> command:255 | address:32 | data: 255 0 0 5 | chksum:221 24: colour red fade 2 to 16 Sending-> command:255 | address:16 | data: 255 0 0 2 | chksum:240 25: transfer to all Sending-> command:254 | address:255 | data: 1 0 1 0 | chksum:1 26: pause 5 pausing for 5 seconds 27: return Return from call 17: next end loop # 1 18: 19: 20: 21: sub redFade 22: print "redFade" 23: colour red fade 5 to test2 24: colour red fade 2 to 16 25: transfer to all 26: pause 5 27: return 28: 29: sub blueFade 30: print "blueFade" 31: colour blue fade 2 to all 32: colour blue fade 3 to 16 33: transfer to all 34: pause 5 35: return 36: 37: sub blackOut 38: print "blackOut" 39: colour black nofade to all 40: transfer to all 41: return 42: 43: sub colourWave 44: print "colourWave" 45: repeat 3 46: colour red fade 2 to all 47: transfer to 0 48: pause 1 49: transfer to 16 50: pause 1 51: transfer to 32 52: pause 1 53: 54: colour green fade 2 to all 55: transfer to 0 56: pause 1 57: transfer to 16 58: pause 1 59: transfer to 32 60: pause 1 61: 62: colour blue fade 2 to all 63: transfer to 0 64: pause 1 65: transfer to 16 66: pause 1 67: transfer to 32 68: pause 1 69: next 70: return Exiting