Skip to content

Nicla: update sketch, BHY2 library update #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions NiclaSenseME-dashboard/NiclaSenseME/NiclaSenseME.ino
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Sketch and web dashboard copy-fixed to be used with the Nicla Sense ME by Pablo
#include "Arduino_BHY2.h"
#include <ArduinoBLE.h>

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

const int VERSION = 0x00000000;

Expand Down Expand Up @@ -66,8 +66,8 @@ void setup(){
nicla::leds.begin();
nicla::leds.setColor(green);

//Sensors intialization
BHY2.begin();
//Sensors initialization
BHY2.begin(NICLA_STANDALONE);
temperature.begin();
humidity.begin();
pressure.begin();
Expand All @@ -78,7 +78,7 @@ void setup(){
gas.begin();

if (!BLE.begin()){
Serial.println("Failled to initialized BLE!");
Serial.println("Failed to initialized BLE!");

while (1)
;
Expand Down