From 43e67058b0ef464fa07121997b6cee7a7f0ca993 Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 18 Nov 2022 13:05:23 -0500 Subject: [PATCH] Added commented out board.STEMMA_I2C with explanation --- examples/emc2101_lut_example.py | 1 + examples/emc2101_set_pwm_freq.py | 1 + examples/emc2101_simpletest.py | 1 + 3 files changed, 3 insertions(+) diff --git a/examples/emc2101_lut_example.py b/examples/emc2101_lut_example.py index 9211320..20630ab 100644 --- a/examples/emc2101_lut_example.py +++ b/examples/emc2101_lut_example.py @@ -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) diff --git a/examples/emc2101_set_pwm_freq.py b/examples/emc2101_set_pwm_freq.py index cc61a6a..f43ed26 100644 --- a/examples/emc2101_set_pwm_freq.py +++ b/examples/emc2101_set_pwm_freq.py @@ -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) diff --git a/examples/emc2101_simpletest.py b/examples/emc2101_simpletest.py index 90a1672..d94d883 100644 --- a/examples/emc2101_simpletest.py +++ b/examples/emc2101_simpletest.py @@ -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%")