You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/03.nano/boards/nano-rp2040-connect/tutorials/rp2040-ble-device-to-device/rp2040-ble-device-to-device.md
In this tutorial, we will learn how to turn on the blue pixel onboard the Arduino® Nano RP2040 Connect board, from another board. For this, we will need two Bluetooth® Low Energy compatible boards, such as the Nano RP2040 Connect board, where we will use the [ArduinoBLE](https://www.arduino.cc/en/Reference/ArduinoLSM6DS3) library to make the connection.
30
28
31
-
>**Note:** if you need help setting up your environment to use your Arduino Nano RP2040 board, please refer to [this installation guide](/software/ide-v1/installing-mbed-os-nano-boards).
29
+
>**Note:** if you need help setting up your environment to use your Arduino Nano RP2040 board, please refer to [this installation guide](/software/ide-v1/tutorials/getting-started/cores/arduino-mbed_nano).
32
30
33
31
## Goals
34
32
@@ -155,13 +153,13 @@ Upload the code below to the central device.
155
153
#include <ArduinoBLE.h>
156
154
157
155
void setup() {
158
-
pinMode(LEDB, OUTPUT);
156
+
pinMode(LED_BUILTIN, OUTPUT);
159
157
Serial.begin(9600);
160
158
while (!Serial);
161
159
// initialize the BLE hardware
162
160
BLE.begin();
163
161
Serial.println("BLE Central - LED control");
164
-
// start scanning for LED BLE peripherals
162
+
// start scanning for Button Device BLE peripherals
@@ -245,7 +243,7 @@ When we open it, the central device will start looking for peripherals. When it
245
243
246
244
Now, if we press the button on the peripheral device, we can see two things change on the **central device.** The blue LED will turn ON, and the Serial Monitor will instead print **"ON"**. We can now turn ON or OFF the LED, through pushing the same button.
247
245
248
-

246
+

0 commit comments