kle4ka

P1_ON_OFF_RELAY_10sec

Dec 9th, 2020
668
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int relayPin =26;
  2.  
  3. void setup() {
  4.   pinMode(relayPin, OUTPUT);
  5. }
  6.  
  7. void loop() {
  8.   digitalWrite(relayPin, HIGH);
  9.  delay(10000);
  10.   digitalWrite(relayPin, LOW);
  11.  delay(10000);
  12. }
RAW Paste Data