<commit_before>LEGO Power Functions LIRC
=========================

***Linux Infrared Remote Control configuration files for LEGO Power Functions RC v1.20.***    

Setup
-----

LIRC_RPI_install.md includes the necessary steps to get LIRC up and running on a Raspberry Pi.

<NAME>'s blog post, [Infrared Remote Control](http://ofalcao.pt/blog/en/2014/infrared-remote-control), demonstrates how to use LEGO LIRC with a headphone jack.

Reference Files
---------------

- LEGO_Power_Functions_RC_v120.pdf is a copy of LEGO's official documentation for their protocol.
- LPF_RC_Protocol.rst contains a summarized protocol definition and encoding/decoding timing parameters.
- LPF_RC_Modes.rst contains summarized mode-specific data and deviations from the standard protocol.
- LIRC_Remote.rst contains common LIRC lircd.conf-style configuration file settings for the LEGO RC protocol.


Known Issues
------------
- The Extended Mode generation code is included, however, it has not yet been tested.
- Of Single Output Mode's two sub-modes, PWM is implemented while Clear/Set/Toggle/Inc/Dec is not.

---

**Compatible Hardware:** *[8884 IR Receiver](http://powerfunctions.lego.com/en-us/ElementSpecs/8884.aspx) | [8885 IR Remote Control](http://powerfunctions.lego.com/en-us/ElementSpecs/8885.aspx) | [8879 IR Speed Remote Control](http://powerfunctions.lego.com/en-us/ElementSpecs/8879.aspx)*  
**Reference Documentation:** *[LIRC Configuration File Format](http://www.lirc.org/html/lircd.conf.html) | [LEGO Power Functions RC v1.20](http://cache.lego.com/Media/Download/PowerfunctionsElementSpecsDownloads/otherfiles/download9FC026117C091015E81EC28101DACD4E/8884RemoteControlIRReceiver_Download.pdf)*  

---
[MIT License](http://github.com/iConor/lego-lirc/blob/master/LICENSE)<commit_msg>Updated README.<commit_after>LEGO Power Functions LIRC
=========================

***Linux Infrared Remote Control configuration files for LEGO Power Functions RC v1.20.***    

Setup
-----

- Copy the included configuration files into the an appropriate folder (likely /etc/lirc/lircd.conf.d/lego).
- Add include directives to /etc/lirc/lircd.conf for each configuration file you wish to use.
  - For example:
        echo "include /etc/lirc/lircd.conf.d/lego/Combo_PWM" >> /etc/lirc/lircd.conf
- [LIRC_RPI_Install](https://github.com/iConor/lego-lirc/blob/master/LIRC_RPI_Install.md) includes the necessary steps to get LIRC up and running on a Raspberry Pi.
- <NAME>'s blog post, [Infrared Remote Control](http://ofalcao.pt/blog/en/2014/infrared-remote-control), demonstrates how to use LEGO LIRC with a headphone jack.

Reference Files
---------------

- [LEGO_Power_Functions_RC_v120](https://github.com/iConor/lego-lirc/blob/master/LEGO_Power_Functions_RC_v120.pdf) is a copy of LEGO's official documentation for their protocol.
- [LPF_RC_Protocol](https://github.com/iConor/lego-lirc/blob/master/LPF_RC_Protocol.rst) contains a summarized protocol definition and encoding/decoding timing parameters.
- [LPF_RC_Modes](https://github.com/iConor/lego-lirc/blob/master/LPF_RC_Modes.rst) contains summarized mode-specific data and deviations from the standard protocol.
- [LIRC_Remote](https://github.com/iConor/lego-lirc/blob/master/LIRC_Remote.rst) contains common LIRC lircd.conf-style configuration file settings for the LEGO RC protocol.


Known Issues
------------
- The Extended Mode generation code is included, however, it has not yet been tested.
- Of Single Output Mode's two sub-modes, PWM is implemented while Clear/Set/Toggle/Inc/Dec is not.

---

**Compatible Hardware:** *[8884 IR Receiver](http://powerfunctions.lego.com/en-us/ElementSpecs/8884.aspx) | [8885 IR Remote Control](http://powerfunctions.lego.com/en-us/ElementSpecs/8885.aspx) | [8879 IR Speed Remote Control](http://powerfunctions.lego.com/en-us/ElementSpecs/8879.aspx)*  
**Reference Documentation:** *[LIRC Configuration File Format](http://www.lirc.org/html/lircd.conf.html) | [LEGO Power Functions RC v1.20](http://cache.lego.com/Media/Download/PowerfunctionsElementSpecsDownloads/otherfiles/download9FC026117C091015E81EC28101DACD4E/8884RemoteControlIRReceiver_Download.pdf)*  

---
Released under the [MIT License](http://github.com/iConor/lego-lirc/blob/master/LICENSE).
{'fraction_non_alphanumeric': 0.133129123468426, 'fraction_numerical': 0.02992459943449576, 'mean_word_length': 4.5855263157894735, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 5, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4245687', 'n_tokens_mistral': 1464, 'n_tokens_neox': 1321, 'n_words': 336}