File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change
1
+ #include " BleKeyboard.h"
2
+
1
3
#if defined(USE_NIMBLE)
2
4
#include < NimBLEDevice.h>
3
5
#include < NimBLEServer.h>
14
16
#include < driver/adc.h>
15
17
#include " sdkconfig.h"
16
18
17
- #include " BleKeyboard.h"
18
19
19
20
#if defined(CONFIG_ARDUHAL_ESP_LOG)
20
21
#include " esp32-hal-log.h"
Original file line number Diff line number Diff line change
1
+ // uncomment the following line to use NimBLE library
2
+ // #define USE_NIMBLE
3
+
1
4
#ifndef ESP32_BLE_KEYBOARD_H
2
5
#define ESP32_BLE_KEYBOARD_H
3
6
#include " sdkconfig.h"
Original file line number Diff line number Diff line change @@ -137,15 +137,13 @@ Flash: [==== ] 44.2% (used 579158 bytes from 1310720 bytes)
137
137
| ` ESP.getFreeHeap() ` | 143.572 | 260.764 | ** + 117.192** |
138
138
| ` ESP.getSketchSize() ` | 994.224 | 579.264 | ** - 414.960** |
139
139
140
- ### How to activate NimBLE mode?
140
+ ## How to activate NimBLE mode?
141
141
142
- ArduinoIDE: Before including the library, insert the line ` #define USE_NIMBLE `
143
- ``` C++
144
- #define USE_NIMBLE
145
- #include < BleKeyboard.h>
146
- ```
142
+ ### ArduinoIDE:
143
+ Edit BleKeyboard.h and remove and uncomment the first line ` #define USE_NIMBLE `
147
144
148
- PlatformIO: Change your ` platformio.ini ` to the following settings
145
+ ### PlatformIO:
146
+ Change your ` platformio.ini ` to the following settings
149
147
``` ini
150
148
lib_deps =
151
149
NimBLE-Arduino
You can’t perform that action at this time.
0 commit comments