File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -30,16 +30,16 @@ Usage Example
30
30
31
31
.. code-block :: python
32
32
33
- import busio
34
- import veml6070
35
33
import time
36
- from board import *
34
+ import board
35
+ import busio
36
+ from adafruit_veml6070 import VEML6070
37
37
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)
40
40
# 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)
43
43
44
44
# take 10 readings
45
45
for j in range (10 ):
Original file line number Diff line number Diff line change 13
13
# products from Adafruit!
14
14
#
15
15
# 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
17
17
# https://github.com/adafruit/Adafruit_VEML6070
18
18
#
19
19
# CircuitPython Library Author: Michael Schroeder(sommersoft). No
Original file line number Diff line number Diff line change 1
- #VEML6070 Driver Example Code
1
+ # VEML6070 Driver Example Code
2
+
2
3
import time
3
4
import busio
4
- import adafruit_veml6070
5
5
import board
6
+ import adafruit_veml6070
6
7
7
8
with busio .I2C (board .SCL , board .SDA ) as i2c :
8
9
uv = adafruit_veml6070 .VEML6070 (i2c )
You can’t perform that action at this time.
0 commit comments