Skip to content

Commit

Permalink
an illustration for Prime3 wiki [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed May 16, 2023
1 parent ed35c61 commit 1cca3d2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Binary file added documents/images/Prime3-29.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ boolean Adafruit_BMP085::begin(uint8_t mode) {

#if defined(ESP32) && defined(ESP_IDF_VERSION_MAJOR) && ESP_IDF_VERSION_MAJOR>=4
Wire.beginTransmission(BMP085_I2CADDR);
if (Wire.endTransmission() != 0) return false;
bool probe = Wire.endTransmission();
if (probe) {
Wire.beginTransmission(BMP085_I2CADDR);
probe = Wire.endTransmission();
if (probe) {
return false;
}
}
#endif /* ESP32 && ESP_IDF_VERSION_MAJOR>=4 */

if (read8(0xD0) != 0x55) return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ bool Adafruit_BMP280::begin(uint8_t a, uint8_t chipid) {

#if defined(ESP32) && defined(ESP_IDF_VERSION_MAJOR) && ESP_IDF_VERSION_MAJOR>=4
Wire.beginTransmission(a);
if (Wire.endTransmission() != 0) return false;
bool probe = Wire.endTransmission();
if (probe) {
Wire.beginTransmission(a);
probe = Wire.endTransmission();
if (probe) {
return false;
}
}
#endif /* ESP32 && ESP_IDF_VERSION_MAJOR>=4 */

#if !defined(HACKRF_ONE)
Expand Down

0 comments on commit 1cca3d2

Please sign in to comment.