예제 #1
0
void switchToRelay(uint8_t r)
{
	cli();
	current_status=STATUS_RELAY;
	sub_current_status = r;
	iterations = 0;
	
	RELAY_OFF(RELAY1);
	RELAY_OFF(RELAY2);
	RELAY_OFF(RELAY3);
	RELAY_OFF(RELAY4);
}	
예제 #2
0
void switchToReset()
{
	current_status = STATUS_RESET;
	sub_current_status = 0;
	iterations = 0;
	settings_item1 = 0;
	settings_item2 = 0;
	
	RELAY_OFF(RELAY1);
	RELAY_OFF(RELAY2);
	RELAY_OFF(RELAY3);
	RELAY_OFF(RELAY4);
}
예제 #3
0
void RELAY_Init(void)
{
    RELAY_Config();

    RELAY_OFF();
}
예제 #4
0
void relay_turn_off(void)
{
    RELAY_OFF();
}