-
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19ce990
commit 0df8201
Showing
280 changed files
with
33,379 additions
and
1,261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# Contributing to the IRremoteESP8266 library | ||
|
||
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1: | ||
|
||
The following is a set of guidelines for contributing to the IRremoteESP8266 library, hosted on GitHub. These are guidelines, [not rules](http://imgur.com/mSHi8). Use your best judgment, and feel free to propose changes to this document in a pull request. | ||
|
||
#### Table Of Contents | ||
|
||
[Code of Conduct](#code-of-conduct) | ||
|
||
[How Can I Contribute?](#how-can-i-contribute) | ||
* [Reporting Bugs](#reporting-bugs) | ||
* [Pull Requests](#pull-requests) | ||
|
||
[Styleguides](#styleguides) | ||
* [Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html) | ||
* [Git Commit Messages](#git-commit-messages) | ||
|
||
|
||
## Code of Conduct | ||
|
||
This project and everyone participating in it is governed by the principle of ["Be excellent to each other"](http://www.imdb.com/title/tt0096928/quotes). That's it. TL;DR: _Don't be a jerk._ | ||
|
||
## How Can I Contribute? | ||
|
||
### Reporting Bugs | ||
|
||
This section guides you through submitting a bug report for the library. Following these guidelines helps maintainers and the community understand your report :pencil:, reproduce the behavior :computer: :computer:, and find related reports :mag_right:. | ||
|
||
Before creating bug reports, please check [this list](#before-submitting-a-bug-report) as you might find out that you don't need to create one. When you are creating a bug report, please [include as much detail as possible](#how-do-i-submit-a-good-bug-report). Fill out [the required template](issue_template.md), the information it asks for helps us resolve issues faster. | ||
|
||
> **Note:** If you find a **Closed** issue that seems like it's the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one. | ||
#### Before Submitting A Bug Report | ||
|
||
* **Check the [Troubleshooting Guide](https://github.com/markszabo/IRremoteESP8266/wiki/Troubleshooting-Guide).** You might be able to find the cause of the problem and fix it yourself. Most importantly, check if you can reproduce the problem in the latest version (a.k.a. 'master') of the library. | ||
* **Perform a [cursory search](https://github.com/issues?q=+is%3Aissue+repo%3Amarkszabo/IRremoteESP8266)** to see if the problem is already reported. If it has **and the issue is still open**, add a comment to the existing issue instead of opening a new one. | ||
|
||
#### How Do I Submit A (Good) Bug Report? | ||
|
||
Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue and provide the following information by filling in [the template](issue_template.md). | ||
|
||
Explain the problem and include any additional details to help maintainers reproduce the problem: | ||
|
||
* **Use a clear and descriptive title** for the issue to identify the problem. | ||
* **Describe the exact steps which reproduce the problem** in as much detail as possible. | ||
* **Provide specific examples to demonstrate the steps**. Include links to files or GitHub projects, or copy/pasteable snippets, which you use in those examples. If you're providing snippets in the issue, use [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines). | ||
* **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior. | ||
* **Explain which behavior you expected to see instead and why.** | ||
* **If the problem wasn't triggered by a specific action**, describe what you were doing before the problem happened and share more information using the guidelines below. | ||
|
||
Provide more context by answering these questions: | ||
|
||
* **Can you reproduce the problem in one of the code examples?** | ||
* **Did the problem start happening recently** (e.g. after updating to a new version of Arduino or the library) or was this always a problem? | ||
* If the problem started happening recently, **can you reproduce the problem in an older version of the library?** What's the most recent version in which the problem doesn't happen? You can download older versions of the library from [the releases page](https://github.com/markszabo/IRremoteESP8266/releases). | ||
* **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens. | ||
|
||
Include details about your configuration, circuit and environment: | ||
|
||
* **Which version of the library are you using?** You can get the exact version by inspecting the `library.json` file in the root directory of the library. | ||
* **What board are you running this on?** | ||
|
||
### Pull Requests | ||
|
||
* Do not include issue numbers in the PR title | ||
* Include as much data and comments as practicle. | ||
* Follow the [C++ style guide](https://google.github.io/styleguide/cppguide.html). | ||
* Please write or ensure Unit Tests cover the change you are making, if you can. | ||
* End all files with a newline | ||
* Avoid platform-dependent code. | ||
* Use c98 types where possible for better portablity. | ||
* In almost all cases, code & documentation should be peer-reviewed by at least one other contributor. | ||
* The code should pass all the existing testing infrastructure in Travis. e.g. Unit tests, cpplint, and basic compilation. | ||
* State if you have tested this under real conditions if you have, and what other tests you may have carried out. | ||
|
||
### Git Commit Messages | ||
|
||
* Limit the first line to 72 characters or less | ||
* Reference issues and pull requests liberally after the first line | ||
* Humour is always acceptable. Be liberal with it. ;-) | ||
* While not required, a comprehensive description of all the changes in the PR is best. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## Contributors of this project | ||
### Main contributors & maintainers | ||
- [Mark Szabo](https://github.com/markszabo/) : Initial IR sending on ESP8266 | ||
- [Sébastien Warin](https://github.com/sebastienwarin/) (http://sebastien.warin.fr) : Initial IR receiving on ESP8266 | ||
- [David Conran](https://github.com/crankyoldgit/) | ||
- [Roi Dayan](https://github.com/roidayan/) | ||
- [Marcos de Alcântara Marinho](https://github.com/marcosamarinho/) | ||
- [Massimiliano Pinto](https://github.com/pintomax/) | ||
- [Darsh Patel](https://github.com/darshkpatel/) | ||
- [Jonny Graham](https://github.com/jonnygraham/) | ||
- [Stu Fisher](https://github.com/stufisher/) | ||
- [Jorge Cisneros](https://github.com/jorgecis/) | ||
|
||
All contributors can be found on the [contributors site](https://github.com/markszabo/IRremoteESP8266/graphs/contributors). | ||
|
||
### Contributors of the [original project](https://github.com/z3t0/Arduino-IRremote) can be found on the [original project's contributors page](https://github.com/z3t0/Arduino-IRremote/blob/master/Contributors.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
_(Please use this template for reporting issues. You can delete what ever is not relevant. Giving us this information will help us help you faster. Please also read the [FAQ](https://github.com/markszabo/IRremoteESP8266/wiki/Frequently-Asked-Questions) & [Troubleshooting Guide](https://github.com/markszabo/IRremoteESP8266/wiki/Troubleshooting-Guide). Your problem may already have an answer there.)_ | ||
|
||
### Version/revison of the library used | ||
_Typically located in the `library.json` & `src/IRremoteESP8266.h` files in the root directory of the library. | ||
e.g. v2.0.0, or 'master' as at 1st of June, 2017. etc._ | ||
|
||
### Expected behavior | ||
_What steps did you do and what should it have done?_ | ||
|
||
e.g. | ||
1. Initialise the IRsend class. | ||
2. IRsend.sendFoobar(0xdeadbeef); | ||
3. Foobar branded BBQ turns on and cooks me some ribs. | ||
|
||
### Actual behavior | ||
_What steps did you do, and what did or didn't actually happen?_ | ||
|
||
e.g. | ||
1. Initialise the IRsend class. | ||
2. IRsend.sendFoobar(0xdeadbeef); | ||
3. Foobar BBQ went into Cow(er)-saving mode and fried me a couple of eggs instead. | ||
|
||
#### Output of raw data from IRrecvDumpV2.ino (if applicable) | ||
_Include some raw dumps of what the device saw._ | ||
|
||
### Steps to reproduce the behavior | ||
_What can we do to (pref. reliably) repeat what is happening?_ | ||
|
||
#### Example code used | ||
_Include all relevant code snippets or links to the actual code files. Tip: [How to quote your code so it is still readable](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code)._ | ||
|
||
#### Circuit diagram and hardware used (if applicable) | ||
_Link to an image of the circuit diagram used. Part number of the IR receiver module etc._ | ||
|
||
### I have followed the steps in the [Troubleshooting Guide](https://github.com/markszabo/IRremoteESP8266/wiki/Troubleshooting-Guide) & read the [FAQ](https://github.com/markszabo/IRremoteESP8266/wiki/Frequently-Asked-Questions) | ||
_Yes/No._ | ||
|
||
### Has this library/code previously worked as expected for you? | ||
_Yes/No. If "Yes", which version last worked for you?_ | ||
|
||
### Other useful information | ||
_More information is always welcome. Be verbose._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#----------------------------------------# | ||
# .gitingore for IRremoteESP8266 library # | ||
#----------------------------------------# | ||
|
||
### Files to ignore. | ||
|
||
## Editors | ||
# vi/vim | ||
**/*.swp | ||
|
||
## Build environments | ||
# Platformio | ||
**/.pioenvs/ | ||
**/.piolibdeps/ | ||
**/.clang_complete | ||
**/.gcc-flags.json | ||
examples/**/lib | ||
examples/**/.travis.yml | ||
examples/**/.gitignore | ||
lib/readme.txt | ||
lib/googletest/**/* | ||
|
||
# GCC pre-compiled headers. | ||
**/*.gch | ||
|
||
# Unit Test builds | ||
test/*.o | ||
test/*.a | ||
test/*_test | ||
|
||
# Tools builds | ||
tools/*.o | ||
tools/*.a | ||
tools/gc_decode | ||
|
||
.pioenvs | ||
.piolibdeps | ||
.clang_complete | ||
.gcc-flags.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "lib/googletest"] | ||
path = lib/googletest | ||
url = https://github.com/google/googletest.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
language: c | ||
env: | ||
- BD=esp8266:esp8266:nodemcuv2:CpuFrequency=80,FlashSize=4M3M | ||
- BD=esp8266:esp8266:d1_mini:CpuFrequency=80,FlashSize=4M3M | ||
before_install: | ||
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16" | ||
- sleep 3 | ||
- export DISPLAY=:1.0 | ||
- wget http://downloads.arduino.cc/arduino-1.8.2-linux64.tar.xz | ||
- tar xf arduino-1.8.2-linux64.tar.xz | ||
- sudo mv arduino-1.8.2 /usr/local/share/arduino | ||
- sudo ln -s /usr/local/share/arduino/arduino /usr/local/bin/arduino | ||
- wget https://raw.githubusercontent.com/google/styleguide/gh-pages/cpplint/cpplint.py | ||
install: | ||
- ln -s $PWD /usr/local/share/arduino/libraries/ | ||
- git clone https://github.com/tzapu/WiFiManager.git /usr/local/share/arduino/libraries/WiFiManager | ||
- git clone https://github.com/knolleary/pubsubclient.git /usr/local/share/arduino/libraries/PubSubClient | ||
- arduino --pref "boardsmanager.additional.urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json" --save-prefs | ||
- arduino --install-boards esp8266:esp8266 | ||
- arduino --board $BD --save-prefs | ||
- arduino --pref "compiler.warning_level=all" --save-prefs | ||
- sudo apt-get install jq | ||
script: | ||
# Check that everything compiles. | ||
- arduino --verify --board $BD $PWD/examples/IRrecvDemo/IRrecvDemo.ino | ||
- arduino --verify --board $BD $PWD/examples/IRGCSendDemo/IRGCSendDemo.ino | ||
- arduino --verify --board $BD $PWD/examples/IRGCTCPServer/IRGCTCPServer.ino | ||
- arduino --verify --board $BD $PWD/examples/IRServer/IRServer.ino | ||
- arduino --verify --board $BD $PWD/examples/IRrecvDumpV2/IRrecvDumpV2.ino | ||
- arduino --verify --board $BD $PWD/examples/IRsendDemo/IRsendDemo.ino | ||
- arduino --verify --board $BD $PWD/examples/JVCPanasonicSendDemo/JVCPanasonicSendDemo.ino | ||
- arduino --verify --board $BD $PWD/examples/TurnOnDaikinAC/TurnOnDaikinAC.ino | ||
- arduino --verify --board $BD $PWD/examples/TurnOnFujitsuAC/TurnOnFujitsuAC.ino | ||
- arduino --verify --board $BD $PWD/examples/TurnOnKelvinatorAC/TurnOnKelvinatorAC.ino | ||
- arduino --verify --board $BD $PWD/examples/TurnOnMitsubishiAC/TurnOnMitsubishiAC.ino | ||
- arduino --verify --board $BD $PWD/examples/IRsendProntoDemo/IRsendProntoDemo.ino | ||
- arduino --verify --board $BD $PWD/examples/TurnOnTrotecAC/TurnOnTrotecAC.ino | ||
- arduino --verify --board $BD $PWD/examples/LGACSend/LGACSend.ino | ||
- arduino --verify --board $BD $PWD/examples/TurnOnArgoAC/TurnOnArgoAC.ino | ||
- arduino --verify --board $BD $PWD/examples/IRMQTTServer/IRMQTTServer.ino | ||
- arduino --verify --board $BD $PWD/examples/TurnOnToshibaAC/TurnOnToshibaAC.ino | ||
# Also check the tools programs compile. | ||
- (cd tools; make all) | ||
# Check for lint issues. | ||
- shopt -s nullglob | ||
- python cpplint.py --extensions=c,cc,cpp,ino --headers=h,hpp {src,test,tools}/*.{h,c,cc,cpp,hpp,ino} examples/*/*.{h,c,cc,cpp,hpp,ino} | ||
- shopt -u nullglob | ||
# Build and run the unit tests. | ||
- (cd test; make run) | ||
# Check the version numbers match. | ||
- LIB_VERSION=$(egrep "^#define\s+_IRREMOTEESP8266_VERSION_\s+" src/IRremoteESP8266.h | cut -d\" -f2) | ||
- test ${LIB_VERSION} == "$(jq -r .version library.json)" | ||
- grep -q "^version=${LIB_VERSION}$" library.properties | ||
|
||
notifications: | ||
email: | ||
on_success: change | ||
on_failure: change |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
set noparent | ||
root=src | ||
linelength=80 |
Oops, something went wrong.