title: Arduino + RN-42 Bluetooth module HID
body: <p>I am trying to make a "keyboard" with my <a href="http://arduino.cc/en/Main/ArduinoBoardProMini" rel="noreferrer">Arduino Mini Pro</a> and a <a href="https://www.sparkfun.com/products/10823" rel="noreferrer">RN-42 HID Bluetooth</a> module. I can connect to it with my <a href="http://en.wikipedia.org/wiki/MacBook_Pro" rel="noreferrer">MacBook</a> and it shows up as a Bluetooth keyboard. Also, I can press buttons and it sends commands.</p>
  
  <p>Perfect right? </p>
  
  <p>Unfortunately not... I don't know how to code the bytes I need to send to the module to tell it key presses and key releases. I have been reading through every Bluetooth RN-42 manual I can get my hands on, but I don't completely understand what I should be sending to the Bluetooth module. I have been searching using Google Search the past few weeks too, and I can not find any C code that would help me. As far as I know USB keypresses are sent as arrays of hex. Is this right? If so, how would I code that?</p>