Skip to content

Commit f812548

Browse files
authored
Merge pull request #2660 from DJDevon3/DJDevon3_Working_Branch
Add code comment for Accel Range (sensitivity)
2 parents 6cc2244 + 41485ea commit f812548

File tree

1 file changed

+1
-0
lines changed
  • Feather_RP2040_Prop-Maker_Lightsaber

1 file changed

+1
-0
lines changed

Feather_RP2040_Prop-Maker_Lightsaber/code.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def play_wav(num, loop=False):
7777
i2c = board.I2C()
7878
int1 = DigitalInOut(board.ACCELEROMETER_INTERRUPT)
7979
lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c, int1=int1)
80+
# Accelerometer Range (can be 2_G, 4_G, 8_G, 16_G)
8081
lis3dh.range = adafruit_lis3dh.RANGE_2_G
8182
lis3dh.set_tap(1, HIT_THRESHOLD)
8283

0 commit comments

Comments
 (0)