Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/mcp4728_generalcalltest.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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