Skip to content

Commit 70b82e4

Browse files
authored
Merge pull request #20 from adafruit/jerryneedell-patch-1
Update accel.py to add CPX configuration
2 parents 74afff3 + 5ea32ff commit 70b82e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/accel.py

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
i2c = busio.I2C(board.SCL, board.SDA)
1515
lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c)
1616

17+
# Hardware I2C setup on CircuitPlayground Express:
18+
# import busio
19+
# i2c = busio.I2C(board.ACCELEROMETER_SCL, board.ACCELEROMETER_SDA)
20+
# lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c, address=0x19)
21+
1722
# Software I2C setup:
1823
#import bitbangio
1924
#i2c = bitbangio.I2C(board.SCL, board.SDA)

0 commit comments

Comments
 (0)