Skip to content

Multiple pin outputs (NodeMCU) #1643

Answered by crankyoldgit
ImDiegoMoreno asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, it is.
e.g. (pseudo code, not compiled or checked. Just for illustration.)

#include <Arduino.h>
#include <IRremoteESP8266.h>
#include <IRsend.h>

IRsend livingroom(4);  // Control the living room devices on gpio 4)
IRsend kitchen(7);  // Control the kitchen devices on gpio 7)

void setup() {
  livingroom.begin();
  kitchen.begin();
}

void loop() {
  livingroom.sendNEC(0x00FFE01F);
  delay(10000);
  kitchen.sendSAMSUNG(0xE0E019E6);
  delay(20000);
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ImDiegoMoreno
Comment options

Answer selected by crankyoldgit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants