We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd7ddc6 + 4f5b1e3 commit de75d00Copy full SHA for de75d00
examples/lis3dh_simpletest.py
@@ -21,6 +21,11 @@
21
# int1 = digitalio.DigitalInOut(board.D6) # Set to correct pin for interrupt!
22
# lis3dh = adafruit_lis3dh.LIS3DH_SPI(spi, cs, int1=int1)
23
24
+#PyGamer I2C Setup:
25
+#i2c = busio.I2C(board.SCL, board.SDA)
26
+#int1 = digitalio.DigitalInOut(board.ACCELEROMETER_INTERRUPT)
27
+#lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c, address=0x19, int1=int1)
28
+
29
30
# Set range of accelerometer (can be RANGE_2_G, RANGE_4_G, RANGE_8_G or RANGE_16_G).
31
lis3dh.range = adafruit_lis3dh.RANGE_2_G
0 commit comments