title: No ACK on address with bme280
body: <p>Recently bought <a href="http://www.dx.com/p/gy-bme280-3-3-high-precision-barometric-pressure-module-purple-436672?utm_rid=37321690&amp;utm_source=admitad&amp;utm_medium=affiliate&amp;admitad_uid=a214607b94301d8d69d148c3a17e2c0c#.WxXSAFMvwnU" rel="nofollow noreferrer">gy bme280</a> and trying to connect it with the Esp8266 Nodemcu V3 Esp 12.</p>
  
  <p>Followed the instructions <a href="https://www.embeddedadventures.com/datasheets/BME280.pdf" rel="nofollow noreferrer">here</a> for the hookup and then for the code, followed <a href="https://nodemcu.readthedocs.io/en/master/en/modules/bme280/" rel="nofollow noreferrer">this</a> tutorial.</p>
  
  <p>I built the firmware from <a href="https://nodemcu-build.com/" rel="nofollow noreferrer">https://nodemcu-build.com/</a> a couple of days ago from master.</p>
  
  <p>The debug logs shows this</p>
  
  <pre><code>Queue empty
  Running
  Function platform_gpio_mode() is called. pin_mux:1610614844, func:0
  Function platform_gpio_mode() is called. pin_mux:1610614848, func:0
  i2c setup result --&gt; 100000
  mode: b7
  humidity oss: 5
  config: f0
  No ACK on address: 76
  No ACK on address: 77
  bme280 setup result --&gt; 
  nil
  pm open,type:2 0
  </code></pre>
  
  <p>My code</p>
  
  <pre><code>srv = net.createServer(net.TCP)
  scl = 1
  sda = 2
  i2cResult = i2c.setup(0, sda, scl, i2c.SLOW) -- call i2c.setup() only once
  print("i2c setup result --&gt; " .. i2cResult)
  local bmeResult = bme280.setup()
  print("bme280 setup result --&gt; ")
  print(bmeResult)
  </code></pre>
  
  <p>The connections between BME280 and ESP8266 I have are</p>
  
  <p>SDO -> G</p>
  
  <p>CSB -> 3V</p>
  
  <p>SDA -> D2</p>
  
  <p>SCL -> D1</p>
  
  <p>VCC -> 3V</p>
  
  <p>GND -> G</p>
  
  <p>Any idea of what is failing or what else can I do to troubleshoot it?</p>