Skip to content

Commit 79a475d

Browse files
committed
Added commented out board.STEMMA_I2C with explanation
1 parent 83e2df7 commit 79a475d

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)