Skip to content

A simple bluetooth library to trigger some functionality on a remote ESP32 device over Bluetooth. This is intended to work in conjunction with its Android counterpart: https://github.com/efhilton/BluetoothJoystick

Notifications You must be signed in to change notification settings

efhilton/BluetoothJoystickLibraryESP32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BLE Joystick Library Tester for ESP32

Overview

This project sets up basic BLE functionality in an ESP32 device. It allows a remote device to connect and trigger events via toggles, triggers, joysticks. All while receiving simple console outputs. It should be added as a git submodule under the components folder in your project.

This project:

To Use

Follow these steps to add and use this library in your ESP32-IDF project. Whether you use Git or not, we've got you covered:

Option 1: If Using Git

  1. Navigate to your project's components folder and add this library as a Git submodule:
   cd <your_project_dir>/components
   git submodule add https://github.com/efhilton/BluetoothJoystick ble_joystick
  1. Initialize and update the submodule to ensure the required files are cloned correctly:
   git submodule update --init --recursive
  1. (Optional) If needed, add the following to your project's main/idf_component.yml file to link the library with the ESP-IDF build system:
   dependencies:
     ble-joystick:
       path: ../components/ble-joystick
       version: "1.0.0"
  1. Build your project to verify integration:
   idf.py build

Option 2: If Not Using Git

  1. Download the library archive directly from the GitHub repository:
  1. Manually place the extracted directory into your project's components folder. Rename the directory to ble_joystick to maintain consistency:
   <your_project_dir>/components/ble_joystick
  1. (Optional) Add the following to your main/idf_component.yml file if required by your project setup:
   dependencies:
     ble-joystick:
       path: ../components/ble-joystick
       version: "1.0.0"
  1. Build your project to confirm the library has been integrated successfully:
   idf.py build

Examples and Help

For a complete example of how to use the library, refer to the test project.

Questions?

Please contact Edgar Hilton if you have any questions or issues.

About

A simple bluetooth library to trigger some functionality on a remote ESP32 device over Bluetooth. This is intended to work in conjunction with its Android counterpart: https://github.com/efhilton/BluetoothJoystick

Resources

Stars

Watchers

Forks

Packages

No packages published