__init__.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #
  2. # BME280 device driver - Public interface
  3. # Copyright (c) 2020-2023 Michael Büsch <m@bues.ch>
  4. #
  5. # The reference and base for this software is the public document
  6. # BME280 - Data sheet
  7. # Document revision 1.6
  8. # Document release date September 2018
  9. # Technical reference code 0 273 141 185
  10. # Document number BST-BME280-DS002-15
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; either version 2 of the License, or
  15. # (at your option) any later version.
  16. #
  17. # This program is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. # GNU General Public License for more details.
  21. #
  22. # You should have received a copy of the GNU General Public License along
  23. # with this program; if not, write to the Free Software Foundation, Inc.,
  24. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  25. #
  26. __all__ = [
  27. "BME280", "BME280Error",
  28. "MODE_SLEEP", "MODE_FORCED", "MODE_NORMAL",
  29. "OVSMPL_SKIP", "OVSMPL_1", "OVSMPL_2", "OVSMPL_4", "OVSMPL_8", "OVSMPL_16",
  30. "T_SB_p5ms", "T_SB_10ms", "T_SB_20ms", "T_SB_62p5ms", "T_SB_125ms", "T_SB_250ms", "T_SB_500ms", "T_SB_1000ms",
  31. "FILTER_OFF", "FILTER_2", "FILTER_4", "FILTER_8", "FILTER_16",
  32. "CALC_FLOAT", "CALC_INT32", "CALC_INT64",
  33. ]
  34. # Export public classes
  35. from .bme280 import BME280, BME280Error
  36. # Export public constants
  37. from .bme280 import MODE_SLEEP, MODE_FORCED, MODE_NORMAL
  38. from .bme280 import OVSMPL_SKIP, OVSMPL_1, OVSMPL_2, OVSMPL_4, OVSMPL_8, OVSMPL_16
  39. from .bme280 import T_SB_p5ms, T_SB_10ms, T_SB_20ms, T_SB_62p5ms, T_SB_125ms, T_SB_250ms, T_SB_500ms, T_SB_1000ms
  40. from .bme280 import FILTER_OFF, FILTER_2, FILTER_4, FILTER_8, FILTER_16
  41. from .bme280 import CALC_FLOAT, CALC_INT32, CALC_INT64
  42. # vim: ts=4 sw=4 expandtab