Simple test

Ensure your device works with this simple test.

examples/veml7700_simpletest.py
 1# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
 2# SPDX-License-Identifier: MIT
 3
 4import time
 5import board
 6import adafruit_veml7700
 7
 8i2c = board.I2C()  # uses board.SCL and board.SDA
 9veml7700 = adafruit_veml7700.VEML7700(i2c)
10
11while True:
12    print("Ambient light:", veml7700.light)
13    time.sleep(0.1)