-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix pin number in Daikin example #383
Conversation
According to https://github.com/esp8266/Arduino/blob/master/variants/nodemcu/pins_arduino.h#L42 If we are going to change it, we need to set it to However, I'm more worried why your platformio environment isn't picking up the |
Interesting, thanks. Yes, it was the board setup. My
Changing Pin marking silkscreen on the Feather Huzzah is I guess it wasn't clear from Happy for you to close if you are targeting For interest, I'm building on Ubuntu 16.04. |
Adafruit are the ones being a bit a-typical. Referring to pins via their labels is supported on traditional Arduino boards for seemingly ever. e.g. Uno, Leonardo, etc. That said, lets try to make this work for everyone. In https://github.com/markszabo/IRremoteESP8266/blob/master/examples/IRsendDemo/IRsendDemo.ino#L36 We can either drop any mention of |
We use just a pin number, and say that pin 4 is D2 on NodeMCU boards.
I've just checked, and Arduino IDE with an Uno doesn't accept Otherwise, what you propose sounds fine. a4c16ce. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Compiled on PlatformIO 3.4.1, tested on an Adafruit Feather Huzzah, with correct response from a Daikin A/C.
Note: also occurs in
TurnOnKelvinatorAC.ino
,TurnOnMitsubishiAC.ino
,TurnOnToshibaAC.ino
, andTurnOnTrotecAC.ino
but I'm unable to test them. 😁 Is the change correct, and shall I widen the change to cover these?