Skip to content

Commit d97ad2f

Browse files
committed
add assets, fix typos
1 parent d25fcd9 commit d97ad2f

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed
599 KB
Loading
557 KB
Loading

content/learn/05.communication/08.bluetooth/bluetooth.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,18 @@ Below you can find examples showing how to send data between two Arduino boards
240240

241241
### Remote LED Control
242242

243-
This example can be used with two Bluetooth® supported Arduino boards, one with a button, and the other with an LED. When the button is pressed, it will advertise a corresponding value (high/low), which will be received by the board with an LED.
243+
This example can be used with two Bluetooth LE supported Arduino boards, one with a button, and the other with an LED. When the button is pressed, it will advertise a corresponding value (high/low), which will be received by the board with an LED.
244244

245245
#### Central
246246

247247
This example scans for Bluetooth Low Energy peripherals with a specific UUID (in this case another Arduino board), connects to it, and lets you control the built-in LED with a button connected to pin 4.
248248

249+
Connect the button as shown on in the circuit below:
250+
251+
![central](./assets/central.png)
252+
253+
Then upload the code found below:
254+
249255
```arduino
250256
#include <ArduinoBLE.h>
251257
@@ -361,7 +367,9 @@ void controlLed(BLEDevice peripheral) {
361367

362368
#### Peripheral
363369

364-
This example is the corresponding sketch to the one above, setting up your Arduino board as peripheral with the correct UUID, advertising a built-in LED characteristic.
370+
This example is the corresponding sketch to the one above, setting up your Arduino board as peripheral with the correct UUID, advertising a built-in LED characteristic. Since we are only using the built-in LED you don't need to wire any components.
371+
372+
![peripheral](./assets/peripheral.png)
365373

366374
```arduino
367375
#include <ArduinoBLE.h>

0 commit comments

Comments
 (0)