# IRremote ESP8266 Library
[![Build Status](https://travis-ci.org/markszabo/IRremoteESP8266.svg?branch=master)](https://travis-ci.org/markszabo/IRremoteESP8266)
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/markszabo/IRremoteESP8266.svg)](http://isitmaintained.com/project/markszabo/IRremoteESP8266 "Average time to resolve an issue")
[![Percentage of issues still open](http://isitmaintained.com/badge/open/markszabo/IRremoteESP8266.svg)](http://isitmaintained.com/project/markszabo/IRremoteESP8266 "Percentage of issues still open")
[![GitLicense](https://gitlicense.com/badge/markszabo/IRremoteESP8266)](https://gitlicense.com/license/markszabo/IRremoteESP8266)
This library enables you to **send _and_ receive** infra-red signals on an [ESP8266 using the Arduino framework](https://github.com/esp8266/Arduino) using common 940nm IR LEDs and common IR receiver modules. e.g. TSOP{17,22,24,36,38,44,48}* etc.
## v2.3.3 Now Available
Version 2.3.3 of the library is now [available](https://github.com/markszabo/IRremoteESP8266/releases/latest). You can view the [Release Notes](ReleaseNotes.md) for all the significant changes.
#### Upgrading from pre-v2.0
Usage of the library slight changed at v2.0. You will need to change your usage to work with v2.0 and beyond. You can read more about the changes required on our [Upgrade to v2.0](https://github.com/markszabo/IRremoteESP8266/wiki/Upgrading-to-v2.0) page.
## Troubleshooting
Before reporting an issue or asking for help, please try to follow our [Troubleshooting Guide](https://github.com/markszabo/IRremoteESP8266/wiki/Troubleshooting-Guide) first.
## Frequently Asked Questions
Some common answers to common questions and problems are on our [F.A.Q. wiki page](https://github.com/markszabo/IRremoteESP8266/wiki/Frequently-Asked-Questions).
## Library History
This library was originally based on Ken Shirriff's work (https://github.com/shirriff/Arduino-IRremote/)
[Mark Szabo](https://github.com/markszabo/IRremoteESP8266) has updated the IRsend class to work on ESP8266 and [Sebastien Warin](https://github.com/sebastienwarin/IRremoteESP8266) the receiving & decoding part (IRrecv class).
As of v2.0, the library was almost entirely re-written with the ESP8266's resources in mind.
## Installation
##### Official releases via the Arduino IDE v1.8+ (Windows & Linux)
1. Click the _"Sketch"_ -> _"Include Library"_ -> _"Manage Libraries..."_ Menu items.
1. Enter `IRremoteESP8266` into the _"Filter your search..."_ top right search box.
1. Click on the IRremoteESP8266 result of the search.
1. Select the version you wish to install and click _"Install"_.
##### Manual Installation for Windows
1. Click on _"Clone or Download"_ button, then _"[Download ZIP](https://github.com/markszabo/IRremoteESP8266/archive->master.zip)"_ on the page.
1. Extract the contents of the downloaded zip file.
1. Rename the extracted folder to _"IRremoteESP8266"_.
1. Move this folder to your libraries directory. (under windows: `C:\Users\YOURNAME\Documents\Arduino\libraries\`)
1. Restart your Arduino IDE.
1. Check out the examples.
##### Using Git to install library ( Linux )
```
cd ~/Arduino/libraries
git clone https://github.com/markszabo/IRremoteESP8266.git
```
###### To Update to the latest version of the library
```
cd ~/Arduino/libraries/IRremoteESP8266 && git pull
```
## Unit Tests
_**For Library Developers**_<br>
The [Unit Tests](https://en.wikipedia.org/wiki/Unit_testing) under the [test/](https://github.com/markszabo/IRremoteESP8266/tree/master/test) directory are for a Unix machine, **not** the micro-controller (ESP8266).
The tests are for execution under [Travis](https://travis-ci.org/) and on a developer's machine.
All internal library code _must_ use [c99 exact-width type definitions](https://en.wikipedia.org/wiki/C_data_types#Fixed-width_integer_types).
e.g. uint16_t etc.
You _must_ disable any Arduino/ESP8266 specific code _(e.g. `Serial.print()` etc.)_ using something like:
```
#ifndef UNIT_TEST
<Arduino specific code ...>
#endif
```
Unit Tests & Test Coverage are not perfect as we can not emulate hardware specific features and differences. e.g. Interrupts, GPIOs, CPU instruction timing etc, etc.
The example code has no unit tests.
To run all the tests yourself, try the following:
```
$ cd test
$ make run
```
## Contributing
If you want to [contribute](.github/CONTRIBUTING.md#how-can-i-contribute) to this project, consider:
- [Report](.github/CONTRIBUTING.md#reporting-bugs) bugs and errors
- Ask for enhancements
- Improve our documentation
- [Create issues](.github/CONTRIBUTING.md#reporting-bugs) and [pull requests](.github/CONTRIBUTING.md#pull-requests)
- Tell other people about this library
## Contributors
Available [here](.github/Contributors.md)
没有合适的资源?快使用搜索试试~ 我知道了~
IRremoteESP8266-master.zip_8266 ir_IRremoteESP8266_IRremoteMQTT_
共144个文件
cpp:70个
h:19个
ini:18个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 190 浏览量
2022-09-21
21:59:25
上传
评论
收藏 278KB ZIP 举报
温馨提示
红外线小白级别编写,就是仿照网上的自己编辑的一个红外线使用的,红外线学习的小程序很简单也能看得懂
资源详情
资源评论
资源推荐
收起资源包目录
IRremoteESP8266-master.zip_8266 ir_IRremoteESP8266_IRremoteMQTT_ (144个子文件)
CPPLINT.cfg 92B
CPPLINT.cfg 36B
ir_Mitsubishi_test.cpp 35KB
ir_Daikin_test.cpp 34KB
ir_RC5_RC6_test.cpp 31KB
ir_Toshiba_test.cpp 29KB
ir_Fujitsu_test.cpp 26KB
ir_Midea_test.cpp 25KB
IRrecv.cpp 22KB
ir_Haier_test.cpp 21KB
ir_Daikin.cpp 20KB
IRsend.cpp 20KB
ir_Kelvinator.cpp 19KB
ir_Panasonic_test.cpp 19KB
ir_RC5_RC6.cpp 18KB
ir_Kelvinator_test.cpp 17KB
ir_Gree_test.cpp 16KB
IRrecv_test.cpp 16KB
ir_Mitsubishi.cpp 16KB
ir_Fujitsu.cpp 16KB
ir_Pronto_test.cpp 14KB
ir_Sony_test.cpp 14KB
ir_Gree.cpp 14KB
IRutils_test.cpp 14KB
ir_Dish_test.cpp 13KB
ir_Aiwa_test.cpp 13KB
ir_Lasertag_test.cpp 13KB
ir_LG_test.cpp 13KB
ir_Haier.cpp 13KB
ir_Sharp_test.cpp 13KB
ir_Midea.cpp 13KB
ir_NEC_test.cpp 12KB
ir_Coolix_test.cpp 12KB
ir_Denon_test.cpp 12KB
IRutils.cpp 11KB
ir_Samsung_test.cpp 11KB
ir_JVC_test.cpp 11KB
ir_Sharp.cpp 10KB
ir_Toshiba.cpp 10KB
ir_Carrier_test.cpp 10KB
ir_Whynter_test.cpp 10KB
ir_Sanyo_test.cpp 9KB
IRsend_test.cpp 9KB
ir_Sanyo.cpp 9KB
ir_RCMM_test.cpp 8KB
ir_LG.cpp 8KB
ir_Nikai_test.cpp 8KB
ir_NEC.cpp 8KB
ir_Panasonic.cpp 7KB
ir_Magiquest_test.cpp 7KB
ir_Samsung.cpp 6KB
ir_Sony.cpp 6KB
ir_RCMM.cpp 6KB
ir_Argo.cpp 6KB
ir_Coolix.cpp 6KB
ir_JVC.cpp 6KB
ir_Whynter.cpp 5KB
ir_Denon.cpp 5KB
ir_Magiquest.cpp 5KB
ir_Dish.cpp 5KB
ir_Aiwa.cpp 4KB
ir_Carrier.cpp 4KB
ir_Pronto.cpp 4KB
ir_Lasertag.cpp 4KB
ir_Nikai.cpp 4KB
ir_Trotec.cpp 3KB
ir_GlobalCache_test.cpp 3KB
ir_GlobalCache.cpp 3KB
gc_decode.cpp 3KB
ir_Sherwood_test.cpp 3KB
ir_Sherwood.cpp 1KB
IRtimer.cpp 933B
.gitignore 576B
.gitmodules 100B
IRrecv.h 10KB
IRsend.h 10KB
IRremoteESP8266.h 10KB
ir_Daikin.h 6KB
ir_Kelvinator.h 5KB
IRsend_test.h 3KB
ir_Haier.h 3KB
ir_Gree.h 3KB
ir_Argo.h 3KB
ir_Midea.h 2KB
ir_Fujitsu.h 2KB
ir_Toshiba.h 2KB
ir_Mitsubishi.h 2KB
IRutils.h 1KB
ir_Trotec.h 1KB
ir_Magiquest.h 974B
IRrecv_test.h 431B
ir_LG.h 402B
IRtimer.h 297B
platformio.ini 533B
platformio.ini 495B
platformio.ini 313B
platformio.ini 296B
platformio.ini 296B
platformio.ini 296B
platformio.ini 296B
共 144 条
- 1
- 2
Kinonoyomeo
- 粉丝: 77
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0