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 BLE 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.
31
29
32
-
>**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).
30
+
>**Note:** if you need help setting up your environment to use your Arduino Nano RP2040 board, please refer to [this installation guide](https://docs.arduino.cc/software/ide-v1/tutorials/getting-started/cores/arduino-mbed_nano).
33
31
34
32
## Goals
35
33
@@ -156,13 +154,13 @@ Upload the code below to the central device.
156
154
#include <ArduinoBLE.h>
157
155
158
156
void setup() {
159
-
pinMode(LEDB, OUTPUT);
157
+
pinMode(LED_BUILTIN, OUTPUT);
160
158
Serial.begin(9600);
161
159
while (!Serial);
162
160
// initialize the BLE hardware
163
161
BLE.begin();
164
162
Serial.println("BLE Central - LED control");
165
-
// start scanning for LED BLE peripherals
163
+
// start scanning for Button Device BLE peripherals
0 commit comments