probonopd/arduino-infrared-pronto — pull request #1 by jerkey (2014-01-02 00:19:28+00:00)
Title: changed the way pin 9 is made into an output to work with leonardo

while the same timer and the same pin is used (OC1A) for the output, the pin does not correspond to the same bit of PORTB, so the way to set it to an output is different between atmega328 and atmega32u4 hardware. this change makes the code work on either platform.