Adafruit example won't run on Nano BLE Sense Rev 2

I'm trying to run an Adafruit example for the VEML7700 light sensor.
The setup portion of the example script is:

#include "Adafruit_VEML7700.h"
Adafruit_VEML7700 veml = Adafruit_VEML7700();

void setup() {
  Serial.begin(9600);
  while (!Serial) { delay(10); }
  Serial.println("Adafruit VEML7700 Auto Lux Test");

  if (!veml.begin()) {
    Serial.println("Sensor not found");
    while (1);
  }
  Serial.println("Sensor found");
}

The setup() code ends at "Adafruit VEML7700 Auto Lux Test," and then nothing happens. Running this same code on an Arduino Uno works fine.
I've checked if it finds the sensor at the default x010 address, and it does.

I also can't get the Adafruit PCA9546 multiplexer to work.

depends=Adafruit BusIO, Adafruit SSD1306

Do you have these library dependencies installed?

After the download, do you go to Tools and reset the port to the communication port from the programming port and then open the Serial monitor?

How do I load library dependencies?

Those libraries should be available through the library manager.

I reloaded the libraries and now it works. Thanks!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.