Skip to content

Conversation

@witnessmenow
Copy link

Nice library! I know its pretty old at this stage but I thought I'd raise a PR of the work I've done with it.

The main change is replace the hardcoding of the Serial interface. The user of the library should now pass in a Serial interface as part of the constructor. This should allow users to use whatever serial interface they want, including software ones.

I have been succesful in testing the RN42 with the hardware serial though on my esp8266, If I open the serial monitor i see the $$$ are sent, but the keyboard commands are not sent to my phone when i connect, so this may need further testing (it could be my wiring)

List of changes:

…oroneill.net/introducing-the-bandon-bluetooth-button-bbb-using-rn42-hid/

Made the serial connection that is used a paraemeter of the constructor. (succesfully tested with Software serial, hasn't worked with HW serial for me yet, more debugging needed)
Updated HID_Keyboard example to use software serial
Updated other examples to compile
@witnessmenow
Copy link
Author

Just to update, the hardware serial not working was me using it wrong, it does work with this version of the library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant