help to use a PME for input switch

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
reza
Normal user
Posts: 88
Joined: 13 Jun 2017, 21:14

Re: help to use a PME for input switch

#31 Post by reza » 19 Jun 2017, 12:04

i think if a friend help me to add a line in my sketch , so we can send state of relay to controller directlly By espeasy Interface.
for example:

Code: Select all

  stateA = digitalRead(relayPinA);
  debouncerA.update();
  int valueA = debouncerA.read();
  if (valueA != oldValueA) {
    digitalWrite(relayPinA, !stateA);
    ********with a command we can send "!stateA" value to controller ********
    oldValueA = valueA;
  }

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 36 guests