Skip to content

Commit 3090e42

Browse files
committed
Update example with alternate I2C address usage.
1 parent 1834f11 commit 3090e42

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/simpletest.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Simple demo of setting the DAC value up and down through its entire range
22
# of values.
3+
# Author: Tony DiCola
34
import board
45
import busio
56

@@ -11,6 +12,8 @@
1112

1213
# Initialize MCP4725.
1314
dac = adafruit_mcp4725.MCP4725(i2c)
15+
# Optionally you can specify a different addres if you override the A0 pin.
16+
#amp = adafruit_max9744.MAX9744(i2c, address=0x63)
1417

1518
# There are a three ways to set the DAC output, you can use any of these:
1619
dac.value = 65535 # Use the value property with a 16-bit number just like

0 commit comments

Comments
 (0)