Skip to content
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

Added 48-NEC1 support to the Arduino-IRremote-mod #1463

Merged
merged 1 commit into from
Dec 15, 2024

Conversation

mintos5
Copy link
Contributor

@mintos5 mintos5 commented Dec 13, 2024

Hi, just wanted to share my workaround code for sending IR codes in 48-NEC1 protocol:
http://www.hifi-remote.com/johnsfine/DecodeIR.html#48-NEC1

The Arduino-IRremote-mod doesn't support it natively, so I patched it in. The library supports sending RAW or pronto codes, but I think OpenBeken has a limited payload, so it will not fit.
The result is this example command:
IRSend NEC-1-0303-0-30
you need to specify bit length! (in hex: 0x30=48 bits)
and the 16bit aCommand is has 2 fields:

  • command/function in the highByte (mask: 0xFF00)
  • E value in lowByte (mask: 0x00FF)

I tested it with my FAN controllable with IR remote, it works nicely

@openshwprojects
Copy link
Owner

Nice addition, thanks

@openshwprojects openshwprojects merged commit 8325a85 into openshwprojects:main Dec 15, 2024
17 checks passed
Copy link

🎉 This PR is included in version 1.17.800 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants