Skip to content

Commit

Permalink
Merge pull request #26 from adafruit/stemma_i2c
Browse files Browse the repository at this point in the history
Added commented out board.STEMMA_I2C with explanation
  • Loading branch information
evaherrada authored Nov 28, 2022
2 parents 35e6002 + 0a50b3c commit 564e1e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/emc2101_lut_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from adafruit_emc2101.emc2101_lut import EMC2101_LUT as EMC2101

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

FAN_MAX_RPM = 1700
emc = EMC2101(i2c)
Expand Down
1 change: 1 addition & 0 deletions examples/emc2101_set_pwm_freq.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from adafruit_emc2101.emc2101_lut import EMC2101_LUT as EMC2101

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

emc = EMC2101(i2c)
emc.set_pwm_clock(use_preset=False)
Expand Down
1 change: 1 addition & 0 deletions examples/emc2101_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from adafruit_emc2101 import EMC2101

i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
emc = EMC2101(i2c)
while True:
print("Setting fan speed to 25%")
Expand Down

0 comments on commit 564e1e0

Please sign in to comment.