Skip to content

Commit 21445fe

Browse files
committed
Update sketch, BHY2 library update
Update `BHY2` begin command for the latest version of the library
1 parent c29bb24 commit 21445fe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

NiclaSenseME-dashboard/NiclaSenseME/NiclaSenseME.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Sketch and web dashboard copy-fixed to be used with the Nicla Sense ME by Pablo
2424
#include "Arduino_BHY2.h"
2525
#include <ArduinoBLE.h>
2626

27-
#define BLE_SENSE_UUID(val) ("19b10000" val "-537e-4f6c-d104768a1214")
27+
#define BLE_SENSE_UUID(val) ("19b10000-" val "-537e-4f6c-d104768a1214")
2828

2929
const int VERSION = 0x00000000;
3030

@@ -66,8 +66,8 @@ void setup(){
6666
nicla::leds.begin();
6767
nicla::leds.setColor(green);
6868

69-
//Sensors intialization
70-
BHY2.begin();
69+
//Sensors initialization
70+
BHY2.begin(NICLA_STANDALONE);
7171
temperature.begin();
7272
humidity.begin();
7373
pressure.begin();
@@ -78,7 +78,7 @@ void setup(){
7878
gas.begin();
7979

8080
if (!BLE.begin()){
81-
Serial.println("Failled to initialized BLE!");
81+
Serial.println("Failed to initialized BLE!");
8282

8383
while (1)
8484
;

0 commit comments

Comments
 (0)