ESP32 Fan control

Example of how to turn the fan on and off

#include <Arduino.h>
#define FAN_PIN 18

void setup() {
  pinMode(FAN_PIN, OUTPUT);
}
void loop() {
  digitalWrite(18, HIGH);
  delay(2500);
  digitalWrite(18, LOW);
  delay(5000);
}
en/iot-open/practical/hardware/rtu/esp32/scenarios/fan.txt · Last modified: 2025/07/30 12:28 by kivilands6
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0