Skip to content

Commit 5ea32ff

Browse files
authored
Update accel.py to add CPX configuration
Add CircuitPlaygroun Express configuration as a commented out optiond.
1 parent 74afff3 commit 5ea32ff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/accel.py

Lines changed: 5 additions & 0 deletions
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)