Skip to content

add high pass filter support #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2020
Merged

add high pass filter support #8

merged 1 commit into from
Mar 5, 2020

Conversation

ladyada
Copy link
Member

@ladyada ladyada commented Mar 5, 2020

handy for slope mode!

@ladyada ladyada requested a review from a team March 5, 2020 15:46
@caternuson
Copy link

Works as far as basic get/set testing:

Adafruit CircuitPython 4.1.2 on 2019-12-18; Adafruit ItsyBitsy M4 Express with samd51g19
>>> import board
>>> from adafruit_lsm6ds import LSM6DS33, AccelHPF
>>> lsm = LSM6DS33(board.I2C())
>>> lsm.high_pass_filter_enabled
False
>>> lsm.high_pass_filter_enabled = True
>>> lsm.high_pass_filter_enabled
True
>>> lsm.high_pass_filter
0
>>> lsm.high_pass_filter = AccelHPF.SLOPE
>>> lsm.high_pass_filter
0
>>> lsm.high_pass_filter = AccelHPF.HPF_DIV100
>>> lsm.high_pass_filter
1
>>> lsm.high_pass_filter = AccelHPF.HPF_DIV9
>>> lsm.high_pass_filter
2
>>> lsm.high_pass_filter = AccelHPF.HPF_DIV400
>>> lsm.high_pass_filter
3
>>> lsm.high_pass_filter = 42
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/lib/adafruit_lsm6ds.py", line 386, in high_pass_filter
AttributeError: range must be an `AccelHPF`
>>> 

@ladyada ladyada merged commit effd1ba into adafruit:master Mar 5, 2020
@ladyada
Copy link
Member Author

ladyada commented Mar 5, 2020

thanks!

adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Mar 6, 2020
Updating https://github.com/adafruit/Adafruit_CircuitPython_IL91874 to 1.0.2 from 1.0.1:
  > build.yml: move pylint, black, and Sphinx installs to each repo; add description to 'actions-ci/install.sh'
  > Merge pull request adafruit/Adafruit_CircuitPython_IL91874#6 from danlove99/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_LSM6DS to 2.0.2 from 2.0.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_LSM6DS#8 from ladyada/master
  > build.yml: move pylint, black, and Sphinx installs to each repo; add description to 'actions-ci/install.sh'
  > Merge pull request adafruit/Adafruit_CircuitPython_LSM6DS#7 from ladyada/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_PyPortal to 3.1.11 from 3.1.10:
  > build.yml: move pylint, black, and Sphinx installs to each repo; add description to 'actions-ci/install.sh'
  > Merge pull request adafruit/Adafruit_CircuitPython_PyPortal#66 from ladyada/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_RFM69 to 1.4.0 from 1.3.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_RFM69#23 from jerryneedell/jerryn_rssi

Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE_BroadcastNet to 0.8.0 from df145c9:
  < Merge pull request adafruit/Adafruit_CircuitPython_BLE_BroadcastNet#3 from tannewt/update_doc

Updating https://github.com/adafruit/Adafruit_CircuitPython_Debug_I2C to 1.0.1 from 4e7463b:
  < build.yml: move pylint, black, and Sphinx installs to each repo; add description to 'actions-ci/install.sh'

Updating https://github.com/adafruit/Adafruit_CircuitPython_ProgressBar to 1.1.1 from 73870c4:
  < build.yml: move pylint, black, and Sphinx installs to each repo; add description to 'actions-ci/install.sh'

Updating https://github.com/adafruit/Adafruit_CircuitPython_WSGI to 1.0.0 from e7835a7:
  < build.yml: move pylint, black, and Sphinx installs to each repo; add description to 'actions-ci/install.sh'

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Added the following libraries: Adafruit_CircuitPython_BLE_BroadcastNet, Adafruit_CircuitPython_Debug_I2C, Adafruit_CircuitPython_ProgressBar, Adafruit_CircuitPython_WSGI
@ladyada ladyada deleted the master branch July 6, 2022 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants