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.