17 lines
200 B
Python
17 lines
200 B
Python
|
|
import machine
|
|
import time
|
|
import SI1145
|
|
|
|
i2c = machine.I2C(scl=machine.Pin(27), sda=machine.Pin(26))
|
|
|
|
s = SI1145.SI1145(i2c)
|
|
|
|
s.readIR()
|
|
s.readUV()
|
|
s.readVisible()
|
|
|
|
while True:
|
|
time.sleep(10)
|
|
|