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
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: ESP32 BLE Keyboard CI Build

on:
push:
branches: [ master ]
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python and install PlatformIO
run: |
python3 -m pip install --upgrade platformio

- name: Build with PlatformIO
run: |
cd test/ci_build
platformio run
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.pio
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
.vscode/ipch
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ESP32 BLE Keyboard library

![Build](https://github.com/tamegai-m/ESP32-BLE-Keyboard/actions/workflows/build.yml/badge.svg)

Bluetooth HID Keyboard library for ESP32...

This library allows you to make the ESP32 act as a Bluetooth Keyboard and control what it does.
You might also be interested in:
- [ESP32-BLE-Mouse](https://github.com/T-vK/ESP32-BLE-Mouse)
Expand Down
7 changes: 7 additions & 0 deletions test/ci_build/platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_ldf_mode = deep+
lib_extra_dirs = ../
lib_deps = ESP32 BLE Keyboard
14 changes: 14 additions & 0 deletions test/ci_build/src/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include <Arduino.h>
#include <BleKeyboard.h>

BleKeyboard bleKeyboard("ESP32 Keyboard");

void setup() {
bleKeyboard.begin();
}

void loop() {
if (bleKeyboard.isConnected()) {
bleKeyboard.print("Hello");
}
}