static void createId(int id) { int binary[255]; int length = 0; int i=0, x=0; length = decToBin(id, binary); for(i=0;i<=length;i++) { if(binary[i]==1) { x=((length-i)+1)*4; createHigh(106-x, 106-(x-3)); } } }
static void createUnitCode(int unitcode) { int binary[255]; int length = 0; int i=0, x=0; length = decToBinRev(unitcode, binary); for(i=0;i<=length;i++) { if(binary[i]==1) { x=i*4; createHigh(20+x, 20+x+3); } } }
static void createSystemCode(int systemcode) { int binary[255]; int length = 0; int i=0, x=0; length = decToBinRev(systemcode, binary); for(i=0;i<=length;i++) { if(binary[i]==1) { x=i*4; createHigh(x, x+3); } } }
static void clearCode(void) { createHigh(0,35); createLow(36,47); }
static void createState(int state) { if(state == 0) { createHigh(44,47); } }
static void createState(int state) { if(state == 1) { createHigh(110, 113); } }
static void createAll(int all) { if(all == 1) { createHigh(106, 109); } }
static void clearCode(void) { createHigh(0,47); }
static void createProgramCode(int programcode) { createHigh(16+(programcode-1)*4, 16+(programcode-1)*4+3); }
static void createSystemCode(int systemcode) { createHigh((systemcode-1)*4, (systemcode-1)*4+3); }