Skip to content

Commit aa41403

Browse files
authored
Merge pull request #15 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 92f8966 + 5f10e38 commit aa41403

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

examples/mcp4728_generalcalltest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import adafruit_mcp4728
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
mcp4728 = adafruit_mcp4728.MCP4728(i2c)
910

1011
mcp4728.channel_a.value = 65535 # Voltage = VDD

examples/mcp4728_simpletest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
MCP4728A4_DEFAULT_ADDRESS = 0x64
99

1010
i2c = board.I2C() # uses board.SCL and board.SDA
11+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1112
# use for MCP4728 variant
1213
mcp4728 = adafruit_mcp4728.MCP4728(i2c, adafruit_mcp4728.MCP4728_DEFAULT_ADDRESS)
1314
# use for MCP4728A4 variant

examples/mcp4728_vref_example.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import adafruit_mcp4728
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
mcp4728 = adafruit_mcp4728.MCP4728(i2c)
1011

1112
FULL_VREF_RAW_VALUE = 4095

0 commit comments

Comments
 (0)