Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A4 DIGITAL I/O
#2
your code function is when digital input trigger, Toggle relay.
you can replace this code:
digitalWrite(Relay1, !digitalRead(Relay1));

use if .... else ... for ON/OFF relay.
Reply


Messages In This Thread
KC868-A4 DIGITAL I/O - by franco.demei@gmail.com - 04-02-2024, 09:37 PM
RE: KC868-A4 DIGITAL I/O - by admin - 04-02-2024, 09:52 PM
RE: KC868-A4 DIGITAL I/O - by admin - 04-03-2024, 12:28 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)