Skip to content

Commit fbd1a2d

Browse files
authored
updated Usage Example
now matches examples/uv_read.py
1 parent 65592e9 commit fbd1a2d

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.rst

+9-7
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,18 @@ Usage Example
3030

3131
.. code-block:: python
3232
33-
import busio
34-
import veml6070
3533
import time
36-
from board import *
34+
import busio
35+
import adafruit_veml6070
36+
import board
37+
38+
3739
38-
with busio.I2C(SCL, SDA) as i2c:
39-
uv = veml6070.VEML6070(i2c)
40+
with busio.I2C(board.SCL, board.SDA) as i2c:
41+
uv = adafruit_veml6070.VEML6070(i2c)
4042
# Alternative constructors with parameters
41-
#uv = veml6070.VEML6070(i2c, 'VEML6070_1_T')
42-
#uv = veml6070.VEML6070(i2c, 'VEML6070_HALF_T', True)
43+
#uv = adafruit_veml6070.VEML6070(i2c, 'VEML6070_1_T')
44+
#uv = adafruit_veml6070.VEML6070(i2c, 'VEML6070_HALF_T', True)
4345
4446
# take 10 readings
4547
for j in range(10):

0 commit comments

Comments
 (0)