Skip to content

Commit

Permalink
Added commented out board.STEMMA_I2C with explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
evaherrada committed Nov 18, 2022
1 parent 83e2df7 commit 79a475d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/as7341_batched_readings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from adafruit_as7341 import AS7341

i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
sensor = AS7341(i2c)


Expand Down
1 change: 1 addition & 0 deletions examples/as7341_flicker_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from adafruit_as7341 import AS7341

i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
sensor = AS7341(i2c)
sensor.flicker_detection_enabled = True

Expand Down
1 change: 1 addition & 0 deletions examples/as7341_led_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import adafruit_as7341

i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
sensor = adafruit_as7341.AS7341(i2c)

print("out of init!")
Expand Down
1 change: 1 addition & 0 deletions examples/as7341_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from adafruit_as7341 import AS7341

i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
sensor = AS7341(i2c)


Expand Down

0 comments on commit 79a475d

Please sign in to comment.