Skip to content

Fixed the initialization error of the BME680 sensor.#2227

Merged
ripplebiz merged 1 commit into
meshcore-dev:devfrom
Quency-D:fix-BME680
Apr 2, 2026
Merged

Fixed the initialization error of the BME680 sensor.#2227
ripplebiz merged 1 commit into
meshcore-dev:devfrom
Quency-D:fix-BME680

Conversation

@Quency-D
Copy link
Copy Markdown
Contributor

@Quency-D Quency-D commented Apr 2, 2026

BME680 initialization parameter passing error.

class Adafruit_BME680 {
 public:
  /** Value returned by remainingReadingMillis indicating no asynchronous
   * reading has been initiated by beginReading. **/
  static constexpr int reading_not_started = -1;
  /** Value returned by remainingReadingMillis indicating asynchronous reading
   * is complete and calling endReading will not block. **/
  static constexpr int reading_complete = 0;

  Adafruit_BME680(TwoWire* theWire = &Wire);
  Adafruit_BME680(int8_t cspin, SPIClass* theSPI = &SPI);
  Adafruit_BME680(int8_t cspin, int8_t mosipin, int8_t misopin, int8_t sckpin);

  bool begin(uint8_t addr = BME68X_DEFAULT_ADDRESS, bool initSettings = true);

@ripplebiz ripplebiz merged commit f5c0a74 into meshcore-dev:dev Apr 2, 2026
9 checks passed
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