Skip to content

Commit fc4b5f4

Browse files
authored
Merge pull request #33 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 83e2df7 + 79a475d commit fc4b5f4

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

examples/as7341_batched_readings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from adafruit_as7341 import AS7341
66

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

1011

examples/as7341_flicker_detection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from adafruit_as7341 import AS7341
66

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

examples/as7341_led_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import adafruit_as7341
77

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

1112
print("out of init!")

examples/as7341_simpletest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from adafruit_as7341 import AS7341
66

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

1011

0 commit comments

Comments
 (0)