-
Notifications
You must be signed in to change notification settings - Fork 34
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
NEC one/zero codes reversed #40
Comments
Just hit this issue myself: flipping one/zero resolved the issue for me. Thanks for creating the issue @kevinjwalters, hopefully it can be fixed soon-ish by the CircuitPython team? I can also trying opening up a PR. |
PR would be great! Thanks! |
Hi, I appreciate the work of the CircuitPythot team on a daily basis. (1) Bit is inverted when judging Due to this site, bit is defined as follows.
Current decode logic is...
So, this should be…
By this change, TX and RX will be consistent. The NEC protocol will works fine with this change, but other protocols may be affected. The protocols themselves are many… (2) The sample is not in the NEC protocol This is the original issue.
should be…
I can make a PR, but I think there are two options. Option1
Option2
Please give me your opinion. |
I'll split this up as appropriate after some discussion, I just wanted to record some things I just noticed:
Adafruit_CircuitPython_IRRemote/examples/irremote_transmit.py
Line 19 in e4acf8c
For comparison there's an LIRC configuration file shown in Adafruit Learn: Using an IR Remote with a Raspberry Pi Media Center: Configure and Test which shows the one represented with
594 1634
, the zero by594 519
.That won't matter if the data isn't used outside of this library but it will break and confuse any attempts at IR between CP and all other code / IR data. The reversed values and data feature elsewhere too, e.g. Adafruit Learn: Infrared Receive and Transmit with Circuit Playground Express.
Other observations.
trail=0
appears to break my attempt to generate Sony IR codes. I just tested a feature to supporttrail=None
and my code now works. What does setting a final pulse (usingpulseio
) of0
on the end of a load of duration pairs do?The text was updated successfully, but these errors were encountered: