From e396599688b977945451a4a5e8bee8ed92b2d4cd Mon Sep 17 00:00:00 2001 From: Adrian Stevens Date: Tue, 30 Apr 2024 13:12:24 -0700 Subject: [PATCH] Release 1.11.0 --- .gitignore | 3 + .../Relays.ElectromagneticRelayModule.csproj | 4 +- .../ElectronmagneticRelayModule_Sample.csproj | 2 +- .../Driver/PersonSensor.PersonFace.cs | 2 +- .../Driver/PersonSensor.cs | 2 +- .../Driver/PersonSensor.enums.cs | 75 +++++++++---------- .../Driver/PersonSensorResults.cs | 4 +- ...s.Camera.UsefulSensors.PersonSensor.csproj | 4 +- .../Samples/PersonSensor_Sample/MeadowApp.cs | 2 +- .../PersonSensor_Sample.csproj | 2 +- .../Driver/Readme.md | 6 +- ...Camera.UsefulSensors.TinyCodeReader.csproj | 6 +- .../Driver/TinyCodeReader.cs | 2 +- .../TinyCodeReader_Sample/MeadowApp.cs | 4 +- .../TinyCodeReader_Sample.csproj | 2 +- 15 files changed, 60 insertions(+), 60 deletions(-) diff --git a/.gitignore b/.gitignore index 8a30d25..8aa52b3 100644 --- a/.gitignore +++ b/.gitignore @@ -396,3 +396,6 @@ FodyWeavers.xsd # JetBrains Rider *.sln.iml + +# Mac BS +**/.DS_Store diff --git a/Source/Relays.ElectromagneticRelayModule/Driver/Relays.ElectromagneticRelayModule.csproj b/Source/Relays.ElectromagneticRelayModule/Driver/Relays.ElectromagneticRelayModule.csproj index 4fadb35..3943059 100644 --- a/Source/Relays.ElectromagneticRelayModule/Driver/Relays.ElectromagneticRelayModule.csproj +++ b/Source/Relays.ElectromagneticRelayModule/Driver/Relays.ElectromagneticRelayModule.csproj @@ -1,6 +1,6 @@ - 1.9.0 + 1.11.0 Readme.md 10.0 Apache-2.0 @@ -24,6 +24,6 @@ - + diff --git a/Source/Relays.ElectromagneticRelayModule/Samples/ElectronmagneticRelayModule_Sample/ElectronmagneticRelayModule_Sample.csproj b/Source/Relays.ElectromagneticRelayModule/Samples/ElectronmagneticRelayModule_Sample/ElectronmagneticRelayModule_Sample.csproj index 8b52d89..f136815 100644 --- a/Source/Relays.ElectromagneticRelayModule/Samples/ElectronmagneticRelayModule_Sample/ElectronmagneticRelayModule_Sample.csproj +++ b/Source/Relays.ElectromagneticRelayModule/Samples/ElectronmagneticRelayModule_Sample/ElectronmagneticRelayModule_Sample.csproj @@ -6,7 +6,7 @@ App - + diff --git a/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/PersonSensor.PersonFace.cs b/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/PersonSensor.PersonFace.cs index 18a71df..5f9cf98 100644 --- a/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/PersonSensor.PersonFace.cs +++ b/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/PersonSensor.PersonFace.cs @@ -1,4 +1,4 @@ -namespace Meadow.Foundation.Sensors.Camera; +namespace Meadow.Foundation.Sensors.Camera.UsefulSensors; public partial class PersonSensor { diff --git a/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/PersonSensor.cs b/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/PersonSensor.cs index 75e1822..69cd7e6 100644 --- a/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/PersonSensor.cs +++ b/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/PersonSensor.cs @@ -2,7 +2,7 @@ using System; using System.Linq; -namespace Meadow.Foundation.Sensors.Camera; +namespace Meadow.Foundation.Sensors.Camera.UsefulSensors; /// /// Represents a Useful Sensor's Person Sensor diff --git a/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/PersonSensor.enums.cs b/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/PersonSensor.enums.cs index 1053983..84f4fb0 100644 --- a/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/PersonSensor.enums.cs +++ b/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/PersonSensor.enums.cs @@ -1,44 +1,43 @@ -namespace Meadow.Foundation.Sensors.Camera +namespace Meadow.Foundation.Sensors.Camera.UsefulSensors; + +public partial class PersonSensor { - public partial class PersonSensor + /// + /// Enumeration of configuration commands for the Person Sensor. + /// + enum Commands : byte { /// - /// Enumeration of configuration commands for the Person Sensor. + /// Mode configuration command. Default: 0x01 (continuous). /// - enum Commands : byte - { - /// - /// Mode configuration command. Default: 0x01 (continuous). - /// - MODE = 0x01, - /// - /// Enable/Disable ID model configuration command. Default: 0x00 (False). - /// With this flag set to False, only capture bounding boxes. - /// - ENABLE_ID = 0x02, - /// - /// Single-shot inference configuration command. Default: 0x00. - /// Trigger a single-shot inference. Only works if the sensor is in standby mode. - /// - SINGLE_SHOT = 0x03, - /// - /// 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. - /// - CALIBRATE_ID = 0x04, - /// - /// Store any recognized IDs even when unpowered configuration command. Default: 0x01 (True). - /// - PERSIST_IDS = 0x05, - /// - /// Wipe any recognized IDs from storage configuration command. Default: 0x00. - /// - ERASE_IDS = 0x06, - /// - /// Debug mode configuration command. Default: 0x01 (True). - /// Whether to enable the LED indicator on the sensor. - /// - DEBUG_MODE = 0x07, - } + MODE = 0x01, + /// + /// Enable/Disable ID model configuration command. Default: 0x00 (False). + /// With this flag set to False, only capture bounding boxes. + /// + ENABLE_ID = 0x02, + /// + /// Single-shot inference configuration command. Default: 0x00. + /// Trigger a single-shot inference. Only works if the sensor is in standby mode. + /// + SINGLE_SHOT = 0x03, + /// + /// 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. + /// + CALIBRATE_ID = 0x04, + /// + /// Store any recognized IDs even when unpowered configuration command. Default: 0x01 (True). + /// + PERSIST_IDS = 0x05, + /// + /// Wipe any recognized IDs from storage configuration command. Default: 0x00. + /// + ERASE_IDS = 0x06, + /// + /// Debug mode configuration command. Default: 0x01 (True). + /// Whether to enable the LED indicator on the sensor. + /// + DEBUG_MODE = 0x07, } } \ No newline at end of file diff --git a/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/PersonSensorResults.cs b/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/PersonSensorResults.cs index fc71f83..6053d7a 100644 --- a/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/PersonSensorResults.cs +++ b/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/PersonSensorResults.cs @@ -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; /// /// Represents the structured results returned from the person sensor. diff --git a/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/Sensors.Camera.UsefulSensors.PersonSensor.csproj b/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/Sensors.Camera.UsefulSensors.PersonSensor.csproj index d2c1292..2dc3423 100644 --- a/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/Sensors.Camera.UsefulSensors.PersonSensor.csproj +++ b/Source/Sensors.Camera.UsefulSensors.PersonSensor/Driver/Sensors.Camera.UsefulSensors.PersonSensor.csproj @@ -1,6 +1,6 @@ - 1.9.0 + 1.11.0 Readme.md 10.0 Apache-2.0 @@ -24,6 +24,6 @@ - + diff --git a/Source/Sensors.Camera.UsefulSensors.PersonSensor/Samples/PersonSensor_Sample/MeadowApp.cs b/Source/Sensors.Camera.UsefulSensors.PersonSensor/Samples/PersonSensor_Sample/MeadowApp.cs index 899de21..37f01bc 100644 --- a/Source/Sensors.Camera.UsefulSensors.PersonSensor/Samples/PersonSensor_Sample/MeadowApp.cs +++ b/Source/Sensors.Camera.UsefulSensors.PersonSensor/Samples/PersonSensor_Sample/MeadowApp.cs @@ -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; diff --git a/Source/Sensors.Camera.UsefulSensors.PersonSensor/Samples/PersonSensor_Sample/PersonSensor_Sample.csproj b/Source/Sensors.Camera.UsefulSensors.PersonSensor/Samples/PersonSensor_Sample/PersonSensor_Sample.csproj index c2ce578..803f659 100644 --- a/Source/Sensors.Camera.UsefulSensors.PersonSensor/Samples/PersonSensor_Sample/PersonSensor_Sample.csproj +++ b/Source/Sensors.Camera.UsefulSensors.PersonSensor/Samples/PersonSensor_Sample/PersonSensor_Sample.csproj @@ -6,7 +6,7 @@ App - + diff --git a/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Driver/Readme.md b/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Driver/Readme.md index a41d399..6e8cb38 100644 --- a/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Driver/Readme.md +++ b/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Driver/Readme.md @@ -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. @@ -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 diff --git a/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Driver/Sensors.Camera.UsefulSensors.TinyCodeReader.csproj b/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Driver/Sensors.Camera.UsefulSensors.TinyCodeReader.csproj index 46c10c9..299ce4d 100644 --- a/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Driver/Sensors.Camera.UsefulSensors.TinyCodeReader.csproj +++ b/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Driver/Sensors.Camera.UsefulSensors.TinyCodeReader.csproj @@ -1,6 +1,6 @@ - 1.9.0 + 1.11.0 Readme.md 10.0 Apache-2.0 @@ -12,7 +12,7 @@ UsefulSensorsTinyCodeReader Wilderness Labs, Inc http://developer.wildernesslabs.co/Meadow/Meadow.Foundation/ - Meadow.Foundation.Sensors.Cameras.UsefulSensors.TinyCodeReader + Meadow.Foundation.Sensors.Camera.UsefulSensors.TinyCodeReader https://github.com/WildernessLabs/Meadow.Foundation Meadow.Foundation,Meadow,camera,tiny,code,reader,sensor,AI,QR true @@ -24,6 +24,6 @@ - + diff --git a/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Driver/TinyCodeReader.cs b/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Driver/TinyCodeReader.cs index 349281c..41d0ea4 100644 --- a/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Driver/TinyCodeReader.cs +++ b/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Driver/TinyCodeReader.cs @@ -2,7 +2,7 @@ using System; using System.Threading.Tasks; -namespace Meadow.Foundation.Sensors.Camera; +namespace Meadow.Foundation.Sensors.Camera.UsefulSensors; /// /// Represents a Useful Sensor's Tiny Code Reader diff --git a/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Samples/TinyCodeReader_Sample/MeadowApp.cs b/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Samples/TinyCodeReader_Sample/MeadowApp.cs index 09f0a29..a55d20a 100644 --- a/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Samples/TinyCodeReader_Sample/MeadowApp.cs +++ b/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Samples/TinyCodeReader_Sample/MeadowApp.cs @@ -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; @@ -11,14 +11,12 @@ public class MeadowApp : App // TinyCodeReader tinyCodeReader; - public override Task Initialize() { Resolver.Log.Info("Initialize..."); tinyCodeReader = new TinyCodeReader(Device.CreateI2cBus()); - return Task.CompletedTask; } diff --git a/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Samples/TinyCodeReader_Sample/TinyCodeReader_Sample.csproj b/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Samples/TinyCodeReader_Sample/TinyCodeReader_Sample.csproj index ddd84c4..7852e65 100644 --- a/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Samples/TinyCodeReader_Sample/TinyCodeReader_Sample.csproj +++ b/Source/Sensors.Camera.UsefulSensors.TinyCodeReader/Samples/TinyCodeReader_Sample/TinyCodeReader_Sample.csproj @@ -6,7 +6,7 @@ App - +