Skip to content

Commit

Permalink
Fix pin numbers in examples (crankyoldgit#383)
Browse files Browse the repository at this point in the history
We use just a pin number, and say that pin 4 is D2 on NodeMCU boards.
  • Loading branch information
quozl authored and crankyoldgit committed Dec 22, 2017
1 parent ac06877 commit e69b1f9
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions examples/TurnOnArgoAC/TurnOnArgoAC.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright 2017 crankyoldgit
* An IR LED circuit *MUST* be connected to ESP8266 pin 4 (D2).
* An IR LED circuit *MUST* be connected to ESP8266 GPIO4.
*
* TL;DR: The IR LED needs to be driven by a transistor for a good result.
*
Expand Down Expand Up @@ -29,7 +29,7 @@
#include <IRsend.h>
#include <ir_Argo.h>

IRArgoAC argoir(4); // An IR LED is controlled by GPIO pin 4 (D2)
IRArgoAC argoir(4); // An IR LED is controlled by GPIO4, NodeMCU D2

void setup() {
argoir.begin();
Expand Down
4 changes: 2 additions & 2 deletions examples/TurnOnDaikinAC/TurnOnDaikinAC.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Copyright 2017 sillyfrog
*
* An IR LED circuit *MUST* be connected to ESP8266 pin 4 (D2).
* An IR LED circuit *MUST* be connected to ESP8266 GPIO4.
*
* TL;DR: The IR LED needs to be driven by a transistor for a good result.
*
Expand Down Expand Up @@ -30,7 +30,7 @@
#include <IRsend.h>
#include <ir_Daikin.h>

IRDaikinESP daikinir(D2); // An IR LED is controlled by GPIO pin 4 (D2)
IRDaikinESP daikinir(4); // An IR LED is controlled by GPIO4, NodeMCU D2

void setup() {
daikinir.begin();
Expand Down
4 changes: 2 additions & 2 deletions examples/TurnOnKelvinatorAC/TurnOnKelvinatorAC.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Copyright 2016 David Conran
*
* An IR LED circuit *MUST* be connected to ESP8266 pin 4 (D2).
* An IR LED circuit *MUST* be connected to ESP8266 GPIO4.
*
* TL;DR: The IR LED needs to be driven by a transistor for a good result.
*
Expand Down Expand Up @@ -29,7 +29,7 @@
#include <IRsend.h>
#include <ir_Kelvinator.h>

IRKelvinatorAC kelvir(D2); // An IR LED is controlled by GPIO pin 4 (D2)
IRKelvinatorAC kelvir(4); // An IR LED is controlled by GPIO4, NodeMCU D2

void printState() {
// Display the settings.
Expand Down
4 changes: 2 additions & 2 deletions examples/TurnOnMitsubishiAC/TurnOnMitsubishiAC.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Copyright 2017 David Conran
*
* An IR LED circuit *MUST* be connected to ESP8266 pin 4 (D2).
* An IR LED circuit *MUST* be connected to ESP8266 GPIO4.
*
* TL;DR: The IR LED needs to be driven by a transistor for a good result.
*
Expand Down Expand Up @@ -29,7 +29,7 @@
#include <IRsend.h>
#include <ir_Mitsubishi.h>

IRMitsubishiAC mitsubir(D2); // An IR LED is controlled by GPIO pin 4 (D2)
IRMitsubishiAC mitsubir(4); // An IR LED is controlled by GPIO4, NodeMCU D2

void printState() {
// Display the settings.
Expand Down
4 changes: 2 additions & 2 deletions examples/TurnOnToshibaAC/TurnOnToshibaAC.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Copyright 2017 David Conran
*
* An IR LED circuit *MUST* be connected to ESP8266 pin 4 (D2).
* An IR LED circuit *MUST* be connected to ESP8266 GPIO4.
*
* TL;DR: The IR LED needs to be driven by a transistor for a good result.
*
Expand Down Expand Up @@ -29,7 +29,7 @@
#include <IRsend.h>
#include <ir_Toshiba.h>

IRToshibaAC toshibair(D2); // An IR LED is controlled by GPIO pin 4 (D2)
IRToshibaAC toshibair(4); // An IR LED is controlled by GPIO4, NodeMCU D2

void printState() {
// Display the settings.
Expand Down
4 changes: 2 additions & 2 deletions examples/TurnOnTrotecAC/TurnOnTrotecAC.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright 2017 stufisher
* An IR LED circuit *MUST* be connected to ESP8266 pin 4 (D2).
* An IR LED circuit *MUST* be connected to ESP8266 GPIO4.
*
* TL;DR: The IR LED needs to be driven by a transistor for a good result.
*
Expand Down Expand Up @@ -29,7 +29,7 @@
#include <IRsend.h>
#include <ir_Trotec.h>

IRTrotecESP trotecir(D2); // An IR LED is controlled by GPIO pin 4 (D2)
IRTrotecESP trotecir(4); // An IR LED is controlled by GPIO4, NodeMCU D2

void setup() {
trotecir.begin();
Expand Down

0 comments on commit e69b1f9

Please sign in to comment.