adafruit veml7700 Library example not working

so i tried testing the sensor on a mega and this is the error message i got.

Arduino: 1.8.12 (Windows 10), Board: “Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)”

In file included from

E:\arduino\libraries\Adafruit_VEML7700_Library/Adafruit_VEML7700.h:22:10: fatal error: Adafruit_I2CDevice.h: No such file or directory

#include <Adafruit_I2CDevice.h>


compilation terminated.

exit status 1
Error compiling for board Arduino Mega or Mega 2560.

now thats fine and i can install that library and test but whys it not included in the example code ???

also i took a look at the adafruit page.

and that says use Adafruit BusIO library which is also not included in the example code ???

so which one would be best to use and why arn’t they included in the example code?

would i also be able to use the wire.h for this ?

thanks Ian

sorted it you need the Adafruit BusIO library but but you don't need it in the sketch.