Skip to content

Commit

Permalink
Merge pull request #853 from WildernessLabs/v1.6.0
Browse files Browse the repository at this point in the history
Release 1.6.0
  • Loading branch information
jorgedevs authored Dec 7, 2023
2 parents 55b2e1b + b8beb46 commit a6667f1
Show file tree
Hide file tree
Showing 444 changed files with 5,169 additions and 3,705 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="app.config.yaml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="meadow.config.yaml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class MeadowApp : App<F7FeatherV2>
{
//<!=SNIP=>

List<Led> leds;
private List<Led> leds;

public override Task Initialize()
{
Expand Down Expand Up @@ -48,11 +48,14 @@ public override Task Initialize()

public override async Task Run()
{
Resolver.Log.Error("Error level message");
Resolver.Log.Warn("Warn level message");

Resolver.Log.Info("TestLeds...");

while (true)
{
Resolver.Log.Info("Turning on each led every 100ms");
Resolver.Log.Error("Turning on each led every 100ms");
foreach (var led in leds)
{
led.IsOn = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<LangVersion>10</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<LangVersion>8.0</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<ItemGroup>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<ItemGroup>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<ItemGroup>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<ItemGroup>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
<None Include="..\..\Source\icon.png" Pack="true" PackagePath="" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Meadow.Contracts" Version="1.5.0" />
<PackageReference Include="Meadow.Contracts" Version="1.6.0" />
</ItemGroup>
</Project>
17 changes: 15 additions & 2 deletions Source/Meadow.Foundation.Core/SamplingSensorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,27 @@ namespace Meadow.Foundation
/// Base class for sensors and other updating classes that want to support
/// having their updates consumed by observers that can optionally use filters
/// </summary>
/// <typeparam name="UNIT"></typeparam>
/// <typeparam name="UNIT">The generic sensor data type</typeparam>
public abstract class SamplingSensorBase<UNIT> : ObservableBase<UNIT>, ISamplingSensor<UNIT>
where UNIT : struct
{
private UNIT? _lastEventValue;

/// <summary>
/// Raised when the sensor has new data
/// </summary>
/// <param name="newValue">The new sensor value as a generic</param>
protected void RaiseUpdated(UNIT newValue)
{
var changeResult = new ChangeResult<UNIT>(newValue, _lastEventValue);
Updated?.Invoke(this, changeResult);
_lastEventValue = newValue;
}

/// <summary>
/// Lock for sampling
/// </summary>
protected object samplingLock = new object();
protected object samplingLock = new();

/// <summary>
/// Event handler for updated values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
<ItemGroup>
<None Include=".\Readme.md" Pack="true" PackagePath=""/>
<None Include="..\..\..\icon.png" Pack="true" PackagePath="" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation.Audio.MicroAudio" Version="1.5.0" />
<PackageReference Include="Meadow.F7" Version="1.6.0" />
<PackageReference Include="Meadow.Foundation.Audio.MicroAudio" Version="1.6.0" />
</ItemGroup>
<ItemGroup>
<None Update="meadow.config.yaml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
<ItemGroup>
<None Include=".\Readme.md" Pack="true" PackagePath=""/>
<None Include="..\..\..\icon.png" Pack="true" PackagePath="" />
<PackageReference Include="Meadow.Foundation.DataLoggers.SensorReading" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation.DataLoggers.SensorReading" Version="1.6.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
<ItemGroup>
<None Include=".\Readme.md" Pack="true" PackagePath=""/>
<None Include="..\..\..\icon.png" Pack="true" PackagePath="" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
<ItemGroup>
<None Include=".\Readme.md" Pack="true" PackagePath=""/>
<None Include="..\..\..\icon.png" Pack="true" PackagePath="" />
<PackageReference Include="Meadow.Foundation" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation" Version="1.6.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
<None Include=".\Readme.md" Pack="true" PackagePath=""/>
<None Include="..\..\..\icon.png" Pack="true" PackagePath="" />
<PackageReference Include="System.Text.Json" Version="7.0.2" />
<PackageReference Include="Meadow.Foundation.Graphics.MicroGraphics" Version="1.5.0" />
<PackageReference Include="Meadow.Foundation.Graphics.MicroGraphics" Version="1.6.0" />
</ItemGroup>
</Project>
Loading

0 comments on commit a6667f1

Please sign in to comment.