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
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 ):
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1- #VEML6070 Driver Example Code
1+ # VEML6070 Driver Example Code
2+
23import time
34import busio
4- import adafruit_veml6070
55import board
6+ import adafruit_veml6070
67
78with busio .I2C (board .SCL , board .SDA ) as i2c :
89 uv = adafruit_veml6070 .VEML6070 (i2c )
You can’t perform that action at this time.
0 commit comments