Changes between Version 18 and Version 19 of BME280


Ignore:
Timestamp:
Apr 6, 2015 10:21:23 AM (5 years ago)
Author:
soumura
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BME280

    v18 v19  
    161161void loop()
    162162{
    163     double temp_act = 0.0, press_act = 0.0,hum_act=0.0;  //最終的に表示される値を入れる変数
     163    double temp_act = 0.0, press_act = 0.0,hum_act=0.0;
    164164    signed long int temp_cal;
    165165    unsigned long int press_cal,hum_cal;
     
    189189    Wire.write(0x88);
    190190    Wire.endTransmission();
    191     Wire.requestFrom(BME280_ADDRESS,25);
     191    Wire.requestFrom(BME280_ADDRESS,24);
    192192    while(Wire.available()){
    193193        data[i] = Wire.read();
    194194        i++;
    195195    }
     196   
     197    Wire.beginTransmission(BME280_ADDRESS);
     198    Wire.write(0xA1);
     199    Wire.endTransmission();
     200    Wire.requestFrom(BME280_ADDRESS,1);
     201    data[i] = Wire.read();
     202    i++;
     203   
    196204    Wire.beginTransmission(BME280_ADDRESS);
    197205    Wire.write(0xE1);
    198206    Wire.endTransmission();
    199     Wire.requestFrom(BME280_ADDRESS,8);
     207    Wire.requestFrom(BME280_ADDRESS,7);
    200208    while(Wire.available()){
    201209        data[i] = Wire.read();
     
    304312}
    305313
     314
    306315}}}
    307316