first commit

This commit is contained in:
Lucca Pirovano
2025-11-15 18:01:18 -05:00
commit d9fc362e34
5 changed files with 223 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
const int FAN_PIN = 9; // Pin connected to the FAN
void setup() {
pinMode(FAN_PIN, OUTPUT); // Set the FAN pin as an output
}
void loop() {
digitalWrite(FAN_PIN, HIGH); // Turn the FAN on
Serial.print("Fan-High");
delay(2000); // Wait for 1 second
digitalWrite(FAN_PIN, LOW); // Turn the FAN off
Serial.print("Fan-Low");
delay(2000); // Wait for 1 second
}