X-Git-Url: https://vault307.fbx.one/gitweb/micorpython_ir.git/blobdiff_plain/d10a35788161b8bca341bcb1803c63c74c64ce96..a66e410610702dddef5632aaab1def42ce54db17:/TRANSMITTER.md?ds=sidebyside diff --git a/TRANSMITTER.md b/TRANSMITTER.md index a328d68..c76995b 100644 --- a/TRANSMITTER.md +++ b/TRANSMITTER.md @@ -22,7 +22,10 @@ device similar to the ESP32 RMT. The device driver is [documented here](./RP2_RMT.md); this is for experimenters and those wanting to use the library in conjunction with their own PIO assembler code. -## 1.1 Pyboard Wiring +## 1.1 Wiring + +All microcontrollers require an external circuit to drive the LED. The notes +below on specific microcontrollers assume that such a circuit is used. I use the following circuit which delivers just under 40mA to the diode. R2 may be reduced for higher current. @@ -169,7 +172,7 @@ skipping validation. | RC6_M0 | 6.0ms | 2.0ms | | MCE | 6.7ms | 2.0ms | -#### NEC class +#### NEC class (also Samsung) Class `NEC`. Example invocation: ```python @@ -187,6 +190,16 @@ the complement for values < 256. A value passed in `toggle` is ignored. +For Samsung protocol set the `samsung` class variable `True`: +```python +from ir_tx.nec import NEC +NEC.samsung=True +``` +Samsung remotes do not seem to use repeat codes: the sample I have simply +repeats the original code. + +Thanks are due to J.E.Tannenbaum for information about the Samsung protocol. + #### Sony classes Classes `SONY_12`, `SONY_15` and `SONY_20`. Example invocation: