Skip to content

Commit 1b714c8

Browse files
committed
fix license and make examples match better
1 parent 65592e9 commit 1b714c8

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ Usage Example
3030

3131
.. code-block:: python
3232
33-
import busio
34-
import veml6070
3533
import time
36-
from board import *
34+
import board
35+
import busio
36+
from adafruit_veml6070 import VEML6070
3737
38-
with busio.I2C(SCL, SDA) as i2c:
39-
uv = veml6070.VEML6070(i2c)
38+
with busio.I2C(board.SCL, board.SDA) as i2c:
39+
uv = VEML6070(i2c)
4040
# Alternative constructors with parameters
41-
#uv = veml6070.VEML6070(i2c, 'VEML6070_1_T')
42-
#uv = veml6070.VEML6070(i2c, 'VEML6070_HALF_T', True)
41+
#uv = VEML6070(i2c, 'VEML6070_1_T')
42+
#uv = VEML6070(i2c, 'VEML6070_HALF_T', True)
4343
4444
# take 10 readings
4545
for j in range(10):

adafruit_veml6070.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# products from Adafruit!
1414
#
1515
# Arduino Library: Written by Limor Fried/Ladyada for Adafruit Industries.
16-
# BSD license, all text above must be included in any redistribution
16+
# MIT license, all text above must be included in any redistribution
1717
# https://github.com/adafruit/Adafruit_VEML6070
1818
#
1919
# CircuitPython Library Author: Michael Schroeder(sommersoft). No

examples/read_uv.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
#VEML6070 Driver Example Code
1+
# VEML6070 Driver Example Code
2+
23
import time
34
import busio
4-
import adafruit_veml6070
55
import board
6+
import adafruit_veml6070
67

78
with busio.I2C(board.SCL, board.SDA) as i2c:
89
uv = adafruit_veml6070.VEML6070(i2c)

0 commit comments

Comments
 (0)