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 3792ed9 commit 43e6705
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 43e6705

Please sign in to comment.