Skip to content

Commit 564e1e0

Browse files
authored
Merge pull request #26 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 35e6002 + 0a50b3c commit 564e1e0

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

examples/emc2101_lut_example.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from adafruit_emc2101.emc2101_lut import EMC2101_LUT as EMC2101
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

1011
FAN_MAX_RPM = 1700
1112
emc = EMC2101(i2c)

examples/emc2101_set_pwm_freq.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from adafruit_emc2101.emc2101_lut import EMC2101_LUT as EMC2101
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

1011
emc = EMC2101(i2c)
1112
emc.set_pwm_clock(use_preset=False)

examples/emc2101_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from adafruit_emc2101 import EMC2101
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
emc = EMC2101(i2c)
1011
while True:
1112
print("Setting fan speed to 25%")

0 commit comments

Comments
 (0)