adafruit / Adafruit_CircuitPython_BME280

CircuitPython driver for the BME280
MIT License
63 stars 42 forks source link

Don't use frozenset #25

Closed ladyada closed 5 years ago

ladyada commented 5 years ago

not included on small CP boards :)

tannewt commented 5 years ago

We should replace them with tuples.

loganwedwards commented 5 years ago

Is this related to not being able to use the BME 280 with the Feather M0 RFM9x. I am using the provided sample code from the tutorials and this is where it fails.

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.

Press any key to enter the REPL. Use CTRL-D to reload.soft reboot

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
main.py output:
Traceback (most recent call last):
  File "main.py", line 5, in <module>
  File "adafruit_bme280.py", line 77, in <module>
NameError: name 'frozenset' is not defined

Is there a way to have CircuitPython + Feather M0 + BME280 work in harmony, e.g., use an older release?

loganwedwards commented 5 years ago

With further research, it appears PR #26 will address this.