예제 #1
0
파일: clarus.c 프로젝트: knudje/pilight
void clarusSwCreateUnit(int unit) {
	int binary[255];
	int length = 0;
	int i=0, x=0;

	length = decToBinRev(unit, binary);
	for(i=0;i<=length;i++) {
		if(binary[i]==1) {
			x=i*4;
			clarusSwCreateHigh(23-(x+3), 23-x);
		}
	}
}
예제 #2
0
파일: rc101.c 프로젝트: Johan-M/pilight
static void rc101CreateUnit(int unit) {
	int binary[255];
	int length = 0;
	int i=0, x=0;

	length = decToBinRev(7-unit, binary);
	for(i=0;i<=length;i++) {
		if(binary[i]==1) {
			x=i*2;
			rc101CreateHigh(42+x, 42+x+1);
		}
	}
}
예제 #3
0
static void createId(int id) {
	int binary[255];
	int length = 0;
	int i=0, x=0;

	length = decToBinRev(id, binary);
	for(i=0;i<=length;i++) {
		if(binary[i]==1) {
			x=i*4;
			createLow(16+x, 16+x+3);
		}
	}
}
예제 #4
0
void impulsCreateProgramCode(int programcode) {
	int binary[255];
	int length = 0;
	int i=0, x=0;

	length = decToBinRev(programcode, binary);
	for(i=0;i<=length;i++) {
		if(binary[i]==1) {
			x=i*4;
			impulsCreateHigh(20+x, 20+x+3);
		}
	}
}
예제 #5
0
void sartanoCreateId(int id) {
	int binary[255];
	int length = 0;
	int i=0, x=0;

	length = decToBinRev(id, binary);
	for(i=0;i<=length;i++) {
		if(binary[i]==1) {
			x=i*4;
			sartanoCreateHigh(20+x, 20+x+3);
		}
	}
}
예제 #6
0
void impulsCreateSystemCode(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;
			impulsCreateMed(x, x+3);
		}
	}
}
예제 #7
0
파일: rev_v3.c 프로젝트: Keeward/pilight
static void rev3CreateUnit(int unit) {
    int binary[255];
    int length = 0;
    int i=0, x=0;

    length = decToBinRev(unit, binary);
    for(i=0;i<=length;i++) {
        if(binary[i]==1) {
            x=i*4;
            rev3CreateHigh(24+x, 24+x+3);
        }
    }
}
예제 #8
0
void sartanoCreateUnit(int unit) {
	int binary[255];
	int length = 0;
	int i=0, x=0;

	length = decToBinRev(unit, binary);
	for(i=0;i<=length;i++) {
		if(binary[i]==1) {
			x=i*4;
			sartanoCreateHigh(x, x+3);
		}
	}
}
예제 #9
0
static void cleverwattsCreateUnit(int unit) {
	int binary[255];
	int length = 0;
	int i=0, x=0;

	length = decToBinRev(unit, binary);
	for(i=0;i<=length;i++) {
		if(binary[i]==1) {
			x=i*2;
			cleverwattsCreateLow(45-(x+1), 45-x);
		}
	}
}
예제 #10
0
파일: elro_he.c 프로젝트: Keeward/pilight
static void elroHECreateUnitCode(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;
			elroHECreateHigh(20+x, 20+x+3);
		}
	}
}
예제 #11
0
파일: daycom.c 프로젝트: Lyve1981/pilight
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*2;
			createLow(39-(x+1), 39-x);
		}
	}
}
예제 #12
0
파일: elro_he.c 프로젝트: Keeward/pilight
static void elroHECreateSystemCode(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;
			elroHECreateHigh(x, x+3);
		}
	}
}
예제 #13
0
파일: ehome.c 프로젝트: Johan-M/pilight
static void ehomeCreateId(int id) {
	int binary[255];
	int length = 0;
	int i=0, x=0;

	length = decToBinRev(id, binary);
	for(i=0;i<=length;i++) {
		if(binary[i]==1) {
			x=i*4;
			ehomeCreateHigh(4+x, 4+(x+3));
		}
	}
}
예제 #14
0
static void cleverwattsCreateId(int id) {
	int binary[255];
	int length = 0;
	int i=0, x=0;

	length = decToBinRev(id, binary);
	for(i=0;i<=length;i++) {
		if(binary[i]==1) {
			x=i*2;
			cleverwattsCreateLow(39-(x+1), 39-x);
		}
	}
}
예제 #15
0
static void createUnit(int unit) {
	int binary[255];
	int length = 0;
	int i=0, x=0;

	length = decToBinRev(unit, binary);
	for(i=0;i<=length;i++) {
		if(binary[i]==1) {
			x=i*4;
			createLow(x, x+3);
		}
	}
}
예제 #16
0
파일: rc101.c 프로젝트: Johan-M/pilight
static void rc101CreateId(int id) {
	int binary[255];
	int length = 0;
	int i=0, x=0;

	length = decToBinRev(id, binary);
	for(i=0;i<=length;i++) {
		if(binary[i]==1) {
			x=i*2;
			rc101CreateHigh(x, x+1);
		}
	}
}
예제 #17
0
static void selectremoteCreateId(int id) {
	int binary[255];
	int length = 0;
	int i=0, x=0;

	id = 7-id;
	length = decToBinRev(id, binary);
	for(i=0;i<=length;i++) {
		if(binary[i]==1) {
			x=i*4;
			selectremoteCreateLow(4+x, 4+x+3);
		}
	}
}
예제 #18
0
파일: clarus.c 프로젝트: knudje/pilight
void clarusSwCreateId(char *id) {
	int l = ((int)(id[0]))-65;
	int y = atoi(&id[1]);
	int binary[255];
	int length = 0;
	int i=0, x=0;
	
	length = decToBinRev(y, binary);
	for(i=0;i<=length;i++) {
		x=i*4;
		if(binary[i]==1) {
			clarusSwCreateHigh(39-(x+3), 39-x);
		}
	}
	x=(l*4);
	clarusSwCreateMed(39-(x+3), 39-x);
}
예제 #19
0
파일: x10.c 프로젝트: Johan-M/pilight
static void x10CreateLetter(int l) {
	int binary[255];
	int length = 0;
	int i=0, x=0, y = 0;

	for(i=0;i<17;i++) {
		if((int)x10letters[i] == l) {
			length = decToBinRev(i, binary);
			for(x=0;x<=length;x++) {
				if(binary[x]==1) {
					y=x*2;
					x10CreateHigh(7-(y+1),7-y);
					x10CreateLow(23-(y+1),23-y);
				}
			}
			break;
		}
	}
}
예제 #20
0
static void createSystemCode(int systemcode) {
	int binary[255];
	int length = 0;
	int i=0, x=0;

	length = decToBinRev(systemcode & 0x1F, binary);
	for(i=0;i<=length;i++) {
		if(binary[i]==1) {
			x=i*4;
			createHigh(x, x+3);
		}
	}

	length = decToBinRev((systemcode>>5) & 0x1F, binary);
	for(i=0;i<=length;i++) {
		if(binary[i]==1) {
			x=i*4;
			createMed(x, x+3);
		}
	}
}