Exemplo n.º 1
0
void keepTemp(uint8_t *tempereture){

	switch (speedSelect(tempereture)){
		case HIGH:
			startHeating(HIGH);
			break;
		case MED:
			startHeating(MED);
			break;
		case LOW:
			startHeating(LOW);
			break;
		case OFF:
			startHeating(OFF);
			break;
	}
}
Exemplo n.º 2
0
void GPIORelaisController::setMultipleRelaisOn(int amt)
{
	setOffAllRelais();
	if (amt > 0)  startVentilating();
	if (amt > 1)  startHumidifying();
	if (amt > 2)  startHeating();
	if (amt > 3)  startCooling();
	if (amt > 4)  startDrying();
}
Exemplo n.º 3
0
void start_mashing(uint8_t *target_temp, uint16_t *time_sec){

	while ((!nextStep) && (autoMode)){
		switch (speedSelect(target_temp)){
		case HIGH:
			startHeating(HIGH);
			break;
		case MED:
			startHeating(MED);
			break;
		case LOW:
			startHeating(LOW);
			break;
		case OFF:
			pause = true;
			sec=global_sec;
			wait(time_sec, target_temp);
			nextStep = true;
			break;
		}
	}
}