Skip to content

Commit

Permalink
Merge pull request #223 from WildernessLabs/Bme680
Browse files Browse the repository at this point in the history
Bme680 refactoring
  • Loading branch information
adrianstevens authored Dec 9, 2021
2 parents a0a97ad + f4ef4d3 commit 5287383
Show file tree
Hide file tree
Showing 14 changed files with 401 additions and 162 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace Meadow.Foundation.Sensors.Atmospheric
{
public partial class Bme680
{
public class Configuration
{
public Oversample TemperatureOversample { get; set; } = Oversample.OversampleX16;
public Oversample PressureOversample { get; set; } = Oversample.OversampleX16;
public Oversample HumidityOversample { get; set; } = Oversample.OversampleX16;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Meadow.Foundation.Sensors.Atmospheric
{
public partial class Bme680
{
internal class HumidityCompensation
protected class HumidityCompensation
{
public HumidityCompensation(byte[] rawCompData1)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Meadow.Foundation.Sensors.Atmospheric
{
public partial class Bme680
{
public class PressureCompensation
protected class PressureCompensation
{
public PressureCompensation(IReadOnlyList<byte> rawCompensationData)
{
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public enum Addresses : byte
Default = Address0
}

class RegisterAddresses
internal class RegisterAddresses
{
public static readonly Register Status = new Register(0x73, 1);
public const byte Reset = 0xE0;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
using System;
using System.Collections.Generic;
using Meadow.Hardware;

namespace Meadow.Foundation.Sensors.Atmospheric
{
public partial class Bme680
{
public class TemperatureCompensation
protected class TemperatureCompensation
{
public TemperatureCompensation(IReadOnlyList<byte> rawCompData)
{
Expand Down

This file was deleted.

Loading

0 comments on commit 5287383

Please sign in to comment.