Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge to main for RC2-1 #22

Merged
merged 5 commits into from
Feb 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<PackageReference Include="Meadow.F7" Version="0.*" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Meadow.Foundation.Grove.Sensors.Motion.3-AxisDigitalAccelerometer_16g" Version="0.*" />
<ProjectReference Include="..\..\Driver\3-AxisDigitalAccelerometer16g.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Sensors.Motion.3-AxisDigitalAccelerometer1_5g" Version="0.*" />
<ProjectReference Include="..\..\Driver\3-AxisDigitalAccelerometer1_5g.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Sensors.Motion.3-AxisDigitalCompass" Version="0.*" />
<ProjectReference Include="..\..\Driver\3-AxisDigitalCompass.csproj" />
</ItemGroup>
</Project>
3 changes: 1 addition & 2 deletions Source/4-DigitDisplay/Driver/4-DigitDisplay.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Meadow.Devices;
using Meadow.Foundation.Displays;
using Meadow.Foundation.Displays;
using Meadow.Hardware;

namespace Meadow.Foundation.Grove.Displays
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Displays.4DigitDisplay" Version="0.*" />
<ProjectReference Include="..\..\Driver\4-DigitDisplay.csproj" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Source/Button/Sample/Button_Sample/Button_Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Sensors.Buttons.Button" Version="0.*" />
<ProjectReference Include="..\..\Driver\Button.csproj" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Source/Buzzer/Sample/Buzzer_Sample/Buzzer_Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Audio.Buzzer" Version="0.*" />
<ProjectReference Include="..\..\Driver\Buzzer.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Sensors.Environmental.FlameSensor" Version="0.*" />
<ProjectReference Include="..\..\Driver\FlameSensor.csproj" />
</ItemGroup>
</Project>
101 changes: 101 additions & 0 deletions Source/Grove.sln
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,30 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "3-AxisDigitalCompass", "3-A
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "3-AxisDigitalCompass_Sample", "3-AxisDigitalCompass\Sample\3-AxisDigitalCompass_Sample\3-AxisDigitalCompass_Sample.csproj", "{492AC59E-2E06-4C24-A51F-BD6E67E698D3}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_External", "_External", "{669A65E7-D76B-48E4-98AE-DE7D33662054}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sensors.Motion.Mma7660fc", "..\..\Meadow.Foundation\Source\Meadow.Foundation.Peripherals\Sensors.Motion.Mma7660fc\Driver\Sensors.Motion.Mma7660fc.csproj", "{D0E768DB-9712-402F-A1B9-8085676FB398}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sensors.Motion.Adxl3xx", "..\..\Meadow.Foundation\Source\Meadow.Foundation.Peripherals\Sensors.Motion.Adxl3xx\Driver\Sensors.Motion.Adxl3xx.csproj", "{8F1D4ADD-A507-4DB0-834C-DADC05A86191}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sensors.Motion.Hmc5883", "..\..\Meadow.Foundation\Source\Meadow.Foundation.Peripherals\Sensors.Motion.Hmc5883\Driver\Sensors.Motion.Hmc5883.csproj", "{B0F01209-EB64-48AE-B46A-A8EAC5780C90}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Displays.Tm1637", "..\..\Meadow.Foundation\Source\Meadow.Foundation.Peripherals\Displays.Tm1637\Driver\Displays.Tm1637.csproj", "{E3362827-F82D-44A5-8BEC-B706FF6D8129}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Meadow.Foundation.Core", "..\..\Meadow.Foundation\Source\Meadow.Foundation.Core\Meadow.Foundation.Core.csproj", "{AA13DEE7-C159-473B-AA68-CD1C4841344E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Displays.Lcd.CharacterDisplay", "..\..\Meadow.Foundation\Source\Meadow.Foundation.Peripherals\Displays.Lcd.CharacterDisplay\Driver\Displays.Lcd.CharacterDisplay.csproj", "{DF7F9AD0-9DF5-4013-8CEB-8FAA11D47E50}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RTCs.Ds1307", "..\..\Meadow.Foundation\Source\Meadow.Foundation.Peripherals\RTCs.Ds1307\Driver\RTCs.Ds1307.csproj", "{5E323CE3-987E-414E-989A-6276D4242856}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sensors.Motion.ParallaxPir", "..\..\Meadow.Foundation\Source\Meadow.Foundation.Peripherals\Sensors.Motion.ParallaxPir\Driver\Sensors.Motion.ParallaxPir.csproj", "{1706729E-3586-434C-B51D-CDB0ECCFC0BC}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Servos.ServoCore", "..\..\Meadow.Foundation\Source\Meadow.Foundation.Peripherals\Servos.ServoCore\Driver\Servos.ServoCore.csproj", "{22C728F6-9927-4051-BFA5-08BD9F6FB3C7}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Meadow.F7", "..\..\Meadow.Core\source\implementations\f7\Meadow.F7\Meadow.F7.csproj", "{DD6C92AF-40B5-47C7-8EB7-02275C3B49F4}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sensors.Atmospheric.Th02", "..\..\Meadow.Foundation\Source\Meadow.Foundation.Peripherals\Sensors.Atmospheric.Th02\Driver\Sensors.Atmospheric.Th02.csproj", "{263E36E2-C856-485A-8125-0F3D014CC803}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -645,6 +669,72 @@ Global
{492AC59E-2E06-4C24-A51F-BD6E67E698D3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{492AC59E-2E06-4C24-A51F-BD6E67E698D3}.Release|Any CPU.Build.0 = Release|Any CPU
{492AC59E-2E06-4C24-A51F-BD6E67E698D3}.Release|Any CPU.Deploy.0 = Release|Any CPU
{D0E768DB-9712-402F-A1B9-8085676FB398}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D0E768DB-9712-402F-A1B9-8085676FB398}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D0E768DB-9712-402F-A1B9-8085676FB398}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{D0E768DB-9712-402F-A1B9-8085676FB398}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D0E768DB-9712-402F-A1B9-8085676FB398}.Release|Any CPU.Build.0 = Release|Any CPU
{D0E768DB-9712-402F-A1B9-8085676FB398}.Release|Any CPU.Deploy.0 = Release|Any CPU
{8F1D4ADD-A507-4DB0-834C-DADC05A86191}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8F1D4ADD-A507-4DB0-834C-DADC05A86191}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8F1D4ADD-A507-4DB0-834C-DADC05A86191}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{8F1D4ADD-A507-4DB0-834C-DADC05A86191}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8F1D4ADD-A507-4DB0-834C-DADC05A86191}.Release|Any CPU.Build.0 = Release|Any CPU
{8F1D4ADD-A507-4DB0-834C-DADC05A86191}.Release|Any CPU.Deploy.0 = Release|Any CPU
{B0F01209-EB64-48AE-B46A-A8EAC5780C90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B0F01209-EB64-48AE-B46A-A8EAC5780C90}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B0F01209-EB64-48AE-B46A-A8EAC5780C90}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{B0F01209-EB64-48AE-B46A-A8EAC5780C90}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B0F01209-EB64-48AE-B46A-A8EAC5780C90}.Release|Any CPU.Build.0 = Release|Any CPU
{B0F01209-EB64-48AE-B46A-A8EAC5780C90}.Release|Any CPU.Deploy.0 = Release|Any CPU
{E3362827-F82D-44A5-8BEC-B706FF6D8129}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E3362827-F82D-44A5-8BEC-B706FF6D8129}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E3362827-F82D-44A5-8BEC-B706FF6D8129}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{E3362827-F82D-44A5-8BEC-B706FF6D8129}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E3362827-F82D-44A5-8BEC-B706FF6D8129}.Release|Any CPU.Build.0 = Release|Any CPU
{E3362827-F82D-44A5-8BEC-B706FF6D8129}.Release|Any CPU.Deploy.0 = Release|Any CPU
{AA13DEE7-C159-473B-AA68-CD1C4841344E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AA13DEE7-C159-473B-AA68-CD1C4841344E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AA13DEE7-C159-473B-AA68-CD1C4841344E}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{AA13DEE7-C159-473B-AA68-CD1C4841344E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AA13DEE7-C159-473B-AA68-CD1C4841344E}.Release|Any CPU.Build.0 = Release|Any CPU
{AA13DEE7-C159-473B-AA68-CD1C4841344E}.Release|Any CPU.Deploy.0 = Release|Any CPU
{DF7F9AD0-9DF5-4013-8CEB-8FAA11D47E50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DF7F9AD0-9DF5-4013-8CEB-8FAA11D47E50}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DF7F9AD0-9DF5-4013-8CEB-8FAA11D47E50}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{DF7F9AD0-9DF5-4013-8CEB-8FAA11D47E50}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DF7F9AD0-9DF5-4013-8CEB-8FAA11D47E50}.Release|Any CPU.Build.0 = Release|Any CPU
{DF7F9AD0-9DF5-4013-8CEB-8FAA11D47E50}.Release|Any CPU.Deploy.0 = Release|Any CPU
{5E323CE3-987E-414E-989A-6276D4242856}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5E323CE3-987E-414E-989A-6276D4242856}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5E323CE3-987E-414E-989A-6276D4242856}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{5E323CE3-987E-414E-989A-6276D4242856}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5E323CE3-987E-414E-989A-6276D4242856}.Release|Any CPU.Build.0 = Release|Any CPU
{5E323CE3-987E-414E-989A-6276D4242856}.Release|Any CPU.Deploy.0 = Release|Any CPU
{1706729E-3586-434C-B51D-CDB0ECCFC0BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1706729E-3586-434C-B51D-CDB0ECCFC0BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1706729E-3586-434C-B51D-CDB0ECCFC0BC}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{1706729E-3586-434C-B51D-CDB0ECCFC0BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1706729E-3586-434C-B51D-CDB0ECCFC0BC}.Release|Any CPU.Build.0 = Release|Any CPU
{1706729E-3586-434C-B51D-CDB0ECCFC0BC}.Release|Any CPU.Deploy.0 = Release|Any CPU
{22C728F6-9927-4051-BFA5-08BD9F6FB3C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{22C728F6-9927-4051-BFA5-08BD9F6FB3C7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{22C728F6-9927-4051-BFA5-08BD9F6FB3C7}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{22C728F6-9927-4051-BFA5-08BD9F6FB3C7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{22C728F6-9927-4051-BFA5-08BD9F6FB3C7}.Release|Any CPU.Build.0 = Release|Any CPU
{22C728F6-9927-4051-BFA5-08BD9F6FB3C7}.Release|Any CPU.Deploy.0 = Release|Any CPU
{DD6C92AF-40B5-47C7-8EB7-02275C3B49F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DD6C92AF-40B5-47C7-8EB7-02275C3B49F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DD6C92AF-40B5-47C7-8EB7-02275C3B49F4}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{DD6C92AF-40B5-47C7-8EB7-02275C3B49F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DD6C92AF-40B5-47C7-8EB7-02275C3B49F4}.Release|Any CPU.Build.0 = Release|Any CPU
{DD6C92AF-40B5-47C7-8EB7-02275C3B49F4}.Release|Any CPU.Deploy.0 = Release|Any CPU
{263E36E2-C856-485A-8125-0F3D014CC803}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{263E36E2-C856-485A-8125-0F3D014CC803}.Debug|Any CPU.Build.0 = Debug|Any CPU
{263E36E2-C856-485A-8125-0F3D014CC803}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{263E36E2-C856-485A-8125-0F3D014CC803}.Release|Any CPU.ActiveCfg = Release|Any CPU
{263E36E2-C856-485A-8125-0F3D014CC803}.Release|Any CPU.Build.0 = Release|Any CPU
{263E36E2-C856-485A-8125-0F3D014CC803}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -746,6 +836,17 @@ Global
{43C9B02F-66BF-45C0-8AC3-40B3FC198355} = {FEE56BD7-5282-48AB-BEEC-17F88F7117AD}
{ACFC91F6-1186-4306-BD9A-7909FF66B160} = {43D20CD2-F716-4408-B2D8-CAA137DBE746}
{492AC59E-2E06-4C24-A51F-BD6E67E698D3} = {941E6E43-6251-4EC5-BFDD-957D401BF1D0}
{D0E768DB-9712-402F-A1B9-8085676FB398} = {669A65E7-D76B-48E4-98AE-DE7D33662054}
{8F1D4ADD-A507-4DB0-834C-DADC05A86191} = {669A65E7-D76B-48E4-98AE-DE7D33662054}
{B0F01209-EB64-48AE-B46A-A8EAC5780C90} = {669A65E7-D76B-48E4-98AE-DE7D33662054}
{E3362827-F82D-44A5-8BEC-B706FF6D8129} = {669A65E7-D76B-48E4-98AE-DE7D33662054}
{AA13DEE7-C159-473B-AA68-CD1C4841344E} = {669A65E7-D76B-48E4-98AE-DE7D33662054}
{DF7F9AD0-9DF5-4013-8CEB-8FAA11D47E50} = {669A65E7-D76B-48E4-98AE-DE7D33662054}
{5E323CE3-987E-414E-989A-6276D4242856} = {669A65E7-D76B-48E4-98AE-DE7D33662054}
{1706729E-3586-434C-B51D-CDB0ECCFC0BC} = {669A65E7-D76B-48E4-98AE-DE7D33662054}
{22C728F6-9927-4051-BFA5-08BD9F6FB3C7} = {669A65E7-D76B-48E4-98AE-DE7D33662054}
{DD6C92AF-40B5-47C7-8EB7-02275C3B49F4} = {669A65E7-D76B-48E4-98AE-DE7D33662054}
{263E36E2-C856-485A-8125-0F3D014CC803} = {669A65E7-D76B-48E4-98AE-DE7D33662054}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {803C75D4-CF94-4881-BC4C-7CBE9D272949}
Expand Down
2 changes: 1 addition & 1 deletion Source/LCD/Samples/LCD_Sample/LCD_Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Displays.LCD" Version="0.*" />
<ProjectReference Include="..\..\Driver\LCD.csproj" />
</ItemGroup>
</Project>
3 changes: 1 addition & 2 deletions Source/LEDButton/Driver/LEDButton.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Meadow.Devices;
using Meadow.Foundation.Leds;
using Meadow.Foundation.Leds;
using Meadow.Foundation.Sensors.Buttons;
using Meadow.Hardware;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Sensors.Buttons.LEDButton" Version="0.*" />
<ProjectReference Include="..\..\Driver\LEDButton.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Leds.LEDSocket" Version="0.*" />
<ProjectReference Include="..\..\Driver\LEDSocket.csproj" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Source/LightSensor/Driver/LightSensor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Meadow.Foundation.Grove.Sensors.Light
/// <summary>
/// Represents a Light Sensor
/// </summary>
public class LightSensor : AnalogObservableBase
public class LightSensor : AnalogSamplingBase
{
/// <summary>
/// Creates a new LightSensor driver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Sensors.Light.LightSensor" Version="0.*" />
<ProjectReference Include="..\..\Driver\LightSensor.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Sensors.Light.LineFinder" Version="0.*" />
<ProjectReference Include="..\..\Driver\LineFinder.csproj" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Source/LoudnessSensor/Driver/LoudnessSensor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Meadow.Foundation.Grove.Sensors.Sound
/// <summary>
/// Represents a Loudness Sensor
/// </summary>
public class LoudnessSensor : AnalogObservableBase
public class LoudnessSensor : AnalogSamplingBase
{
/// <summary>
/// Creates a new LoudnessSensor driver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Sensors.Sound.LoudnessSensor" Version="0.*" />
<ProjectReference Include="..\..\Driver\LoudnessSensor.csproj" />
</ItemGroup>
</Project>
10 changes: 10 additions & 0 deletions Source/MagneticSwitch/Driver/MagneticSwitch.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Meadow.Hardware;
using Meadow.Peripherals.Switches;
using System;
using System.Threading.Tasks;

namespace Meadow.Foundation.Grove.Sensors.Switches
{
Expand Down Expand Up @@ -53,5 +54,14 @@ private void SignalPortChanged(object sender, DigitalPortResult e)
{
Changed?.Invoke(this, EventArgs.Empty);
}

/// <summary>
/// Returns the state of the switch
/// </summary>
/// <returns></returns>
public Task<bool> Read()
{
return Task.FromResult(IsOn);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Sensors.Switches.MagneticSwitch" Version="0.*" />
<ProjectReference Include="..\..\Driver\MagneticSwitch.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Sensors.Motion.MiniPIRMotionSensor" Version="0.*" />
<ProjectReference Include="..\..\Driver\MiniPIRMotionSensor.csproj" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Source/MoistureSensor/Driver/MoistureSensor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Meadow.Foundation.Grove.Sensors.Moisture
/// <summary>
/// Represents a Moisture Sensor
/// </summary>
public class MoistureSensor : AnalogObservableBase
public class MoistureSensor : AnalogSamplingBase
{
/// <summary>
/// Creates a new MoistureSensor driver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Sensors.Moisture.MoistureSensor" Version="0.*" />
<ProjectReference Include="..\..\Driver\MoistureSensor.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Sensors.Motion.PIRMotionSensor" Version="0.*" />
<ProjectReference Include="..\..\Driver\PIRMotionSensor.csproj" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Source/RTC/Sample/RTC_Sample/RTC_Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.RTCs.RTC" Version="0.*" />
<ProjectReference Include="..\..\Driver\RTC.csproj" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Source/Relay/Sample/Relay_Sample/Relay_Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Relays.Relay" Version="0.*" />
<ProjectReference Include="..\..\Driver\Relay.csproj" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Source/RotaryAngleSensor/Driver/RotaryAngleSensor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Meadow.Foundation.Grove.Sensors.Rotary
/// <summary>
/// Represents a rotary angle sensor
/// </summary>
public class RotaryAngleSensor : AnalogObservableBase
public class RotaryAngleSensor : AnalogSamplingBase
{
/// <summary>
/// Creates a new RotaryAngleSensor driver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Sensors.Rotary.RotaryAngleSensor" Version="0.*" />
<ProjectReference Include="..\..\Driver\RotaryAngleSensor.csproj" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Source/Servo/Sample/Servo_Sample/Servo_Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Servos.Servo" Version="0.*" />
<ProjectReference Include="..\..\Driver\Servo.csproj" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Source/SoundSensor/Driver/SoundSensor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Meadow.Foundation.Grove.Sensors.Sound
/// <summary>
/// Represents a Sound Sensor
/// </summary>
public class SoundSensor : AnalogObservableBase
public class SoundSensor : AnalogSamplingBase
{
/// <summary>
/// Creates a new SoundSensor driver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Sensors.Sound.SoundSensor" Version="0.*" />
<ProjectReference Include="..\..\Driver\SoundSensor.csproj" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Source/Speaker/Sample/Speaker_Sample/Speaker_Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Audio.Speaker" Version="0.*" />
<ProjectReference Include="..\..\Driver\Speaker.csproj" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Source/SwitchP/Sample/SwitchP_Sample/SwitchP_Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="0.*" />
<PackageReference Include="Meadow.Foundation.Grove.Sensors.Switches.SwitchP" Version="0.*" />
<ProjectReference Include="..\..\Driver\SwitchP.csproj" />
</ItemGroup>
</Project>
Loading