Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- name: Compile sketches
uses: arduino/compile-sketches@v1
with:
enable-deltas-report: true
fqbn: esp32:esp32:esp32
sketch-paths: |
- examples/CharacteristicsConfiguration/CharacteristicsConfiguration.ino
Expand All @@ -56,3 +57,8 @@ jobs:
- name: Keypad
- name: Bounce2
- source-path: .

- name: Sketches report size delta
uses: arduino/report-size-deltas@v1
# Only run the action when the workflow is triggered by a pull request.
if: github.event_name == 'pull_request'
4 changes: 2 additions & 2 deletions .github/workflows/platformio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

strategy:
matrix:
board: [esp32dev, lolin_c3_mini]
board: [esp32dev, lolin_c3_mini, esp32s3]

steps:
- name: Checkout code
Expand All @@ -44,4 +44,4 @@ jobs:
run: |
# pio run -d examples/TestAll/TestAll.ino -e ${{ matrix.board }} -D BLE_GAMEPAD_DEBUG=1 --verbose
cd test/ci_build
pio run -e ${{ matrix.board }} --verbose
pio run -e ${{ matrix.board }}
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# ESP32-BLE-Gamepad

![Build](https://github.com/lemmingDev/ESP32-BLE-Gamepad/actions/workflows/main.yml/badge.svg)
![PlatformIO](https://github.com/lemmingDev/ESP32-BLE-Gamepad/actions/workflows/main.yml/platform.svg)
![PlatformIO](https://github.com/lemmingDev/ESP32-BLE-Gamepad/actions/workflows/platformio.yml/badge.svg)

BLE Bluetooth HID GAMEPAD library for ESP32
Bluetooth LE Gamepad library for the ESP32

## License
Published under the MIT license. Please see license.txt.
Expand All @@ -27,9 +27,10 @@ It would be great however if any improvements are fed back into this version.
- [x] Configurable BLE characteristics (name, manufacturer, model number, software revision, serial number, firmware revision, hardware revision)
- [x] Report optional battery level to host
- [x] Uses efficient NimBLE bluetooth library
- [x] Output report function
- [x] HID Output Report function
- [ ] HID Feature Report function
- [x] Functions available for force pairing/ignore current client and/or delete pairings
- [x] Nordic UART Service functionality at same time as gamepad. See examples
- [x] Nordic UART Service (NUS) functionality at same time as gamepad. See examples
- [x] Compatible with Windows
- [x] Compatible with Android (Android OS maps default buttons / axes / hats slightly differently than Windows) (see notes)
- [x] Compatible with Linux (limited testing)
Expand Down
11 changes: 11 additions & 0 deletions test/ci_build/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,14 @@ lib_deps =
../../
build_flags =
-D BLE_GAMEPAD_DEBUG=1

[env:esp32s3]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
lib_ldf_mode = deep+
lib_deps =
h2zero/NimBLE-Arduino
../../
build_flags =
-D BLE_GAMEPAD_DEBUG=1
Loading