Go Down

Topic: Announcing a New Infrared Remote Control Library for Arduino (Read 613 times) previous topic - next topic

cyborg5

I've just completed a complete rewrite of the famous Ken Shirriff infrared remote library and I have released it to github. I welcome any feedback anyone has.
http://tech.cyborg5.com/2013/02/16/announcing-a-new-infrared-remote-control-library-for-arduino/

johnwasser

Does you library have any advantages over the previous library?
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

cyborg5

If you are only using a few of the protocols the code size is smaller because you don't need to load all of the protocols. Each protocol is its own object class. Also converted some datatypes to save memory for example some variables were long that could've been bool or char. The rewrite of the code also makes it easier to add new protocols. There is a generic decode that you can just pass values into. That eliminates a lot of redundant code. The code has been reorganized to separate out the protocol encoding and decoding from the hardware aspects of the library making more of a black box. Also added a couple of protocols. Also added a new method that dumps the raw data in a nicely formatted fashion.

Go Up