Skip to content

Removed frozenset so it works on a Trinket M0 #15

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 2 commits into from
May 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions adafruit_bmp280.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
IIR_FILTER_X8 = const(0x03)
IIR_FILTER_X16 = const(0x04)

_BMP280_IIR_FILTERS = frozenset((IIR_FILTER_DISABLE, IIR_FILTER_X2,
IIR_FILTER_X4, IIR_FILTER_X8, IIR_FILTER_X16))
_BMP280_IIR_FILTERS = (IIR_FILTER_DISABLE, IIR_FILTER_X2,
IIR_FILTER_X4, IIR_FILTER_X8, IIR_FILTER_X16)

"""overscan values for temperature, pressure, and humidity"""
OVERSCAN_DISABLE = const(0x00)
Expand All @@ -81,7 +81,7 @@
MODE_FORCE = const(0x01)
MODE_NORMAL = const(0x03)

_BMP280_MODES = frozenset((MODE_SLEEP, MODE_FORCE, MODE_NORMAL))
_BMP280_MODES = (MODE_SLEEP, MODE_FORCE, MODE_NORMAL)
"""
standby timeconstant values
TC_X[_Y] where X=milliseconds and Y=tenths of a millisecond
Expand All @@ -95,9 +95,9 @@
STANDBY_TC_500 = const(0x04) #500ms
STANDBY_TC_1000 = const(0x05) #1000ms

_BMP280_STANDBY_TCS = frozenset((STANDBY_TC_0_5, STANDBY_TC_10, STANDBY_TC_20,
STANDBY_TC_62_5, STANDBY_TC_125, STANDBY_TC_250,
STANDBY_TC_500, STANDBY_TC_1000))
_BMP280_STANDBY_TCS = (STANDBY_TC_0_5, STANDBY_TC_10, STANDBY_TC_20,
STANDBY_TC_62_5, STANDBY_TC_125, STANDBY_TC_250,
STANDBY_TC_500, STANDBY_TC_1000)

class Adafruit_BMP280: # pylint: disable=invalid-name
"""Base BMP280 object. Use `Adafruit_BMP280_I2C` or `Adafruit_BMP280_SPI` instead of this. This
Expand Down