http://mbed.org/teams/Nordic-Pucks/code/IRSender/#4576fcd93ffd