Compare commits
1 commit
remove-bad
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41ea3782fb |
2 changed files with 4 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ Introduction
|
|||
:alt: Documentation Status
|
||||
|
||||
.. image:: https://img.shields.io/discord/327254708534116352.svg
|
||||
:target: https://discord.gg/nBQh6qu
|
||||
:target: https://adafru.it/discord
|
||||
:alt: Discord
|
||||
|
||||
.. image:: https://github.com/adafruit/Adafruit_CircuitPython_BMP3XX/workflows/Build%20CI/badge.svg
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ _REGISTER_ODR = const(0x1D)
|
|||
_REGISTER_CONFIG = const(0x1F)
|
||||
_REGISTER_CAL_DATA = const(0x31)
|
||||
_REGISTER_CMD = const(0x7E)
|
||||
# pylint: enable=bad-whitespace
|
||||
|
||||
_OSR_SETTINGS = (1, 2, 4, 8, 16, 32) # pressure and temperature oversampling settings
|
||||
_IIR_SETTINGS = (0, 2, 4, 8, 16, 32, 64, 128) # IIR filter coefficients
|
||||
|
|
@ -150,7 +151,7 @@ class BMP3XX:
|
|||
def _read(self):
|
||||
"""Returns a tuple for temperature and pressure."""
|
||||
# OK, pylint. This one is all kinds of stuff you shouldn't worry about.
|
||||
# pylint: disable=invalid-name, too-many-locals
|
||||
# pylint: disable=bad-whitespace, invalid-name, too-many-locals
|
||||
|
||||
# Perform one measurement in forced mode
|
||||
self._write_register_byte(_REGISTER_CONTROL, 0x13)
|
||||
|
|
@ -196,6 +197,7 @@ class BMP3XX:
|
|||
return pressure, temperature
|
||||
|
||||
def _read_coefficients(self):
|
||||
# pylint: disable=bad-whitespace, bad-continuation
|
||||
"""Read & save the calibration coefficients"""
|
||||
coeff = self._read_register(_REGISTER_CAL_DATA, 21)
|
||||
# See datasheet, pg. 27, table 22
|
||||
|
|
|
|||
Loading…
Reference in a new issue