I am working on a bluetooth HID device. There are libraries which make HID devices a cake walk if you are making a wired version of your HID device. I managed to configure my bluetooth module to appear as a HID device to the system, it however does nothing yet. I figured if I route the serial data, that my wired version of device is sending to the system on Serial, to Serial1 my bluetooth device will function the same way the wired device worked.
If I am not wrong, code that I came across, maps RX of Serial to TX of Serial1.
Void setup(){
Serial.begin(9600);
Serial1.begin(9600);
}
void loop(){
if(Serial.available()){
char get= Serial.read();
Serial1.Write(get);
}
}
What I want to do is map the TX pin of Serial to TX pin of Serial1 of the pro micro.
Serial1.Write(get)
).Serial
’s RX toSerial1
’s TX.DynamicHID
library which in turn uses thePluggableUSB
library. I don't have an electronics background so I couldn't understand much there.