コード例 #1
0
ファイル: BME280.cs プロジェクト: todotani/BME280_Test
 public BME280(standbySettings_e t_sb     = standbySettings_e.tsb_0p5ms,
               mode_e mode                = mode_e.smNormal,
               filterCoefficient_e filter = filterCoefficient_e.fc_16,
               oversampling_e osrs_p      = oversampling_e.os16x,
               oversampling_e osrs_t      = oversampling_e.os2x,
               oversampling_e osrs_h      = oversampling_e.os1x)
 {
     this.t_sb   = (byte)t_sb;
     this.mode   = (byte)mode;
     this.filter = (byte)filter;
     this.osrs_p = (byte)osrs_p;
     this.osrs_t = (byte)osrs_t;
     this.osrs_h = (byte)osrs_h;
 }
コード例 #2
0
ファイル: BME280.cs プロジェクト: todotani/BME280_Test
 public BME280(standbySettings_e t_sb = standbySettings_e.tsb_0p5ms, 
               mode_e mode = mode_e.smNormal, 
               filterCoefficient_e filter = filterCoefficient_e.fc_16,
               oversampling_e osrs_p = oversampling_e.os16x, 
               oversampling_e osrs_t = oversampling_e.os2x,
               oversampling_e osrs_h = oversampling_e.os1x)
 {
     this.t_sb = (byte)t_sb;
     this.mode = (byte)mode;
     this.filter = (byte)filter;
     this.osrs_p = (byte)osrs_p;
     this.osrs_t = (byte)osrs_t;
     this.osrs_h = (byte)osrs_h;
 }