Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 0c3055a5ba
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (24 sloc) 0.746 kB
void setAirPressure(int channel, float value) {
airPressure[channel] = value;
analogWrite(airRegulatorPins[channel], map(value, 0, 1, 0, 255));
}
void setWaterPressure(int channel, float value) {
waterPressure[channel] = value;
analogWrite(pumpPins[channel], map(value, 0, 1, 0, 255));
}
void openWater(int channel) {
waterValveOpen[channel] = true;
digitalWrite(waterValvePins[channel], HIGH);
}
void closeWater(int channel) {
waterValveOpen[channel] = false;
digitalWrite(waterValvePins[channel], LOW);
}
void openAir(int channel) {
airValveOpen[channel] = true;
digitalWrite(airValvePins[channel], HIGH);
}
void closeAir(int channel) {
airValveOpen[channel] = false;
digitalWrite(airValvePins[channel], LOW);
}
Jump to Line
Something went wrong with that request. Please try again.