Skip to content

Commit

Permalink
Merge pull request #15 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 committed Nov 22, 2022
2 parents 92f8966 + 5f10e38 commit aa41403
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/mcp4728_generalcalltest.py
Expand Up @@ -5,6 +5,7 @@
import adafruit_mcp4728

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

mcp4728.channel_a.value = 65535 # Voltage = VDD
Expand Down
1 change: 1 addition & 0 deletions examples/mcp4728_simpletest.py
Expand Up @@ -8,6 +8,7 @@
MCP4728A4_DEFAULT_ADDRESS = 0x64

i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
# use for MCP4728 variant
mcp4728 = adafruit_mcp4728.MCP4728(i2c, adafruit_mcp4728.MCP4728_DEFAULT_ADDRESS)
# use for MCP4728A4 variant
Expand Down
1 change: 1 addition & 0 deletions examples/mcp4728_vref_example.py
Expand Up @@ -6,6 +6,7 @@
import adafruit_mcp4728

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

FULL_VREF_RAW_VALUE = 4095
Expand Down

0 comments on commit aa41403

Please sign in to comment.