Simple test

To test your device use a program similar to this

examples/simple.py
1import board
2from OPT4001 import OPT4001
3
4i2c = board.I2C()
5
6opt = OPT4001(i2c, conversion_time=10, operating_mode=3)
7
8while True:
9    print(f"{opt.lux} \t {opt.read_lux_FIFO(0)} \t {opt.read_lux_FIFO(1)} \t {opt.read_lux_FIFO(2)}")