BLE send a press over HID Bluetooth. Simple Example

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Adaduder
 
Posts: 13
Joined: Mon Mar 14, 2016 3:40 pm

BLE send a press over HID Bluetooth. Simple Example

Post by Adaduder »

I am making a six button box to send key presses over bluetooth/HID. Can someone please help give a simple example code wise.

Pair as HID keyboard to computer.

Example: PIN 7 goes to high it sends a "a" key keyboard press.

Is that possible with BLE?

Thanks again, this forum has been a huge help so far.

I am using the Adafruit Bluefruit LE Micro - Bluetooth Low Energy + ATmega32u4. But I'm assuming the code would be the saem for the newer feather versions.
Attachments
IMG_7579.jpg
IMG_7579.jpg (995.48 KiB) Viewed 161 times

User avatar
Adaduder
 
Posts: 13
Joined: Mon Mar 14, 2016 3:40 pm

Re: BLE send a press over HID Bluetooth. Simple Example

Post by Adaduder »

Anyone looking for an answer to this like I was. I found this great video about building BLE six button controller.

https://www.youtube.com/watch?v=pggjia8 ... &index=163

User avatar
adafruit_support_carter
 
Posts: 29167
Joined: Tue Nov 29, 2016 2:45 pm

Re: BLE send a press over HID Bluetooth. Simple Example

Post by adafruit_support_carter »

Hey! You found it. For reference, here's the guide version of that same project in the Learn System:
https://learn.adafruit.com/custom-wirel ... x-gamepad/

Locked
Please be positive and constructive with your questions and comments.

Return to “Wireless: WiFi and Bluetooth”