Skip to content

Commit

Permalink
Merge pull request #16 from WildernessLabs/v1.11.0
Browse files Browse the repository at this point in the history
Release 1.11.0
  • Loading branch information
ctacke committed May 1, 2024
2 parents 7fa5e54 + e396599 commit 2546e20
Show file tree
Hide file tree
Showing 15 changed files with 60 additions and 60 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -396,3 +396,6 @@ FodyWeavers.xsd

# JetBrains Rider
*.sln.iml

# Mac BS
**/.DS_Store
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Meadow.Sdk/1.1.0">
<PropertyGroup>
<Version>1.9.0</Version>
<Version>1.11.0</Version>
<PackageReadmeFile>Readme.md</PackageReadmeFile>
<LangVersion>10.0</LangVersion>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
Expand All @@ -24,6 +24,6 @@
<None Include="..\..\icon.png" Pack="true" PackagePath="" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Meadow.Foundation.ICs.IOExpanders.Pcx857x" Version="1.9.0" />
<PackageReference Include="Meadow.Foundation.ICs.IOExpanders.Pcx857x" Version="1.11.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.9.0" />
<PackageReference Include="Meadow.F7" Version="1.11.0" />
<ProjectReference Include="..\..\Driver\Relays.ElectromagneticRelayModule.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Meadow.Foundation.Sensors.Camera;
namespace Meadow.Foundation.Sensors.Camera.UsefulSensors;

public partial class PersonSensor
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System;
using System.Linq;

namespace Meadow.Foundation.Sensors.Camera;
namespace Meadow.Foundation.Sensors.Camera.UsefulSensors;

/// <summary>
/// Represents a Useful Sensor's Person Sensor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,44 +1,43 @@
namespace Meadow.Foundation.Sensors.Camera
namespace Meadow.Foundation.Sensors.Camera.UsefulSensors;

public partial class PersonSensor
{
public partial class PersonSensor
/// <summary>
/// Enumeration of configuration commands for the Person Sensor.
/// </summary>
enum Commands : byte
{
/// <summary>
/// Enumeration of configuration commands for the Person Sensor.
/// Mode configuration command. Default: 0x01 (continuous).
/// </summary>
enum Commands : byte
{
/// <summary>
/// Mode configuration command. Default: 0x01 (continuous).
/// </summary>
MODE = 0x01,
/// <summary>
/// Enable/Disable ID model configuration command. Default: 0x00 (False).
/// With this flag set to False, only capture bounding boxes.
/// </summary>
ENABLE_ID = 0x02,
/// <summary>
/// Single-shot inference configuration command. Default: 0x00.
/// Trigger a single-shot inference. Only works if the sensor is in standby mode.
/// </summary>
SINGLE_SHOT = 0x03,
/// <summary>
/// Calibrate the next identified frame as person N, from 0 to 7.
/// If two frames pass with no person, this label is discarded. Default: 0x00.
/// </summary>
CALIBRATE_ID = 0x04,
/// <summary>
/// Store any recognized IDs even when unpowered configuration command. Default: 0x01 (True).
/// </summary>
PERSIST_IDS = 0x05,
/// <summary>
/// Wipe any recognized IDs from storage configuration command. Default: 0x00.
/// </summary>
ERASE_IDS = 0x06,
/// <summary>
/// Debug mode configuration command. Default: 0x01 (True).
/// Whether to enable the LED indicator on the sensor.
/// </summary>
DEBUG_MODE = 0x07,
}
MODE = 0x01,
/// <summary>
/// Enable/Disable ID model configuration command. Default: 0x00 (False).
/// With this flag set to False, only capture bounding boxes.
/// </summary>
ENABLE_ID = 0x02,
/// <summary>
/// Single-shot inference configuration command. Default: 0x00.
/// Trigger a single-shot inference. Only works if the sensor is in standby mode.
/// </summary>
SINGLE_SHOT = 0x03,
/// <summary>
/// Calibrate the next identified frame as person N, from 0 to 7.
/// If two frames pass with no person, this label is discarded. Default: 0x00.
/// </summary>
CALIBRATE_ID = 0x04,
/// <summary>
/// Store any recognized IDs even when unpowered configuration command. Default: 0x01 (True).
/// </summary>
PERSIST_IDS = 0x05,
/// <summary>
/// Wipe any recognized IDs from storage configuration command. Default: 0x00.
/// </summary>
ERASE_IDS = 0x06,
/// <summary>
/// Debug mode configuration command. Default: 0x01 (True).
/// Whether to enable the LED indicator on the sensor.
/// </summary>
DEBUG_MODE = 0x07,
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using static Meadow.Foundation.Sensors.Camera.PersonSensor;
using static Meadow.Foundation.Sensors.Camera.UsefulSensors.PersonSensor;

namespace Meadow.Foundation.Sensors.Camera;
namespace Meadow.Foundation.Sensors.Camera.UsefulSensors;

/// <summary>
/// Represents the structured results returned from the person sensor.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Meadow.Sdk/1.1.0">
<PropertyGroup>
<Version>1.9.0</Version>
<Version>1.11.0</Version>
<PackageReadmeFile>Readme.md</PackageReadmeFile>
<LangVersion>10.0</LangVersion>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
Expand All @@ -24,6 +24,6 @@
<None Include="..\..\icon.png" Pack="true" PackagePath="" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Meadow.Foundation" Version="1.9.0" />
<PackageReference Include="Meadow.Foundation" Version="1.11.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Meadow;
using Meadow.Devices;
using Meadow.Foundation.Sensors.Camera;
using Meadow.Foundation.Sensors.Camera.UsefulSensors;
using System.Threading;
using System.Threading.Tasks;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.9.0" />
<PackageReference Include="Meadow.F7" Version="1.11.0" />
<ProjectReference Include="..\..\Driver\Sensors.Camera.UsefulSensors.PersonSensor.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Meadow.Foundation.Sensors.Cameras.UsefulSensors.TinyCodeReader
# Meadow.Foundation.Sensors.Camera.UsefulSensors.TinyCodeReader

**Useful Sensor's Tiny Code Reader I2C optical QR code reader**

The **UsefulSensorsTinyCodeReader** library is included in the **Meadow.Foundation.Sensors.Cameras.UsefulSensors.TinyCodeReader** nuget package and is designed for the [Wilderness Labs](www.wildernesslabs.co) Meadow .NET IoT platform.
The **UsefulSensorsTinyCodeReader** library is included in the **Meadow.Foundation.Sensors.Camera.UsefulSensors.TinyCodeReader** nuget package and is designed for the [Wilderness Labs](www.wildernesslabs.co) Meadow .NET IoT platform.

This driver is part of the [Meadow.Foundation](https://developer.wildernesslabs.co/Meadow/Meadow.Foundation/) peripherals library, an open-source repository of drivers and libraries that streamline and simplify adding hardware to your C# .NET Meadow IoT applications.

Expand All @@ -14,7 +14,7 @@ To view all Wilderness Labs open-source projects, including samples, visit [gith

You can install the library from within Visual studio using the the NuGet Package Manager or from the command line using the .NET CLI:

`dotnet add package Meadow.Foundation.Sensors.Cameras.UsefulSensors.TinyCodeReader`
`dotnet add package Meadow.Foundation.Sensors.Camera.UsefulSensors.TinyCodeReader`
## Usage

```csharp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Meadow.Sdk/1.1.0">
<PropertyGroup>
<Version>1.9.0</Version>
<Version>1.11.0</Version>
<PackageReadmeFile>Readme.md</PackageReadmeFile>
<LangVersion>10.0</LangVersion>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
Expand All @@ -12,7 +12,7 @@
<AssemblyName>UsefulSensorsTinyCodeReader</AssemblyName>
<Company>Wilderness Labs, Inc</Company>
<PackageProjectUrl>http://developer.wildernesslabs.co/Meadow/Meadow.Foundation/</PackageProjectUrl>
<PackageId>Meadow.Foundation.Sensors.Cameras.UsefulSensors.TinyCodeReader</PackageId>
<PackageId>Meadow.Foundation.Sensors.Camera.UsefulSensors.TinyCodeReader</PackageId>
<RepositoryUrl>https://github.com/WildernessLabs/Meadow.Foundation</RepositoryUrl>
<PackageTags>Meadow.Foundation,Meadow,camera,tiny,code,reader,sensor,AI,QR</PackageTags>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand All @@ -24,6 +24,6 @@
<None Include="..\..\icon.png" Pack="true" PackagePath="" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Meadow.Foundation" Version="1.9.0" />
<PackageReference Include="Meadow.Foundation" Version="1.11.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System;
using System.Threading.Tasks;

namespace Meadow.Foundation.Sensors.Camera;
namespace Meadow.Foundation.Sensors.Camera.UsefulSensors;

/// <summary>
/// Represents a Useful Sensor's Tiny Code Reader
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Meadow;
using Meadow.Devices;
using Meadow.Foundation.Sensors.Camera;
using Meadow.Foundation.Sensors.Camera.UsefulSensors;
using System;
using System.Threading.Tasks;

Expand All @@ -11,14 +11,12 @@ public class MeadowApp : App<F7CoreComputeV2>
//<!=SNIP=>
TinyCodeReader tinyCodeReader;


public override Task Initialize()
{
Resolver.Log.Info("Initialize...");

tinyCodeReader = new TinyCodeReader(Device.CreateI2cBus());


return Task.CompletedTask;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meadow.F7" Version="1.9.0" />
<PackageReference Include="Meadow.F7" Version="1.11.0" />
<ProjectReference Include="..\..\Driver\Sensors.Camera.UsefulSensors.TinyCodeReader.csproj" />
</ItemGroup>
</Project>

0 comments on commit 2546e20

Please sign in to comment.