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.Camera.UsefulSensors.TinyCodeReader nuget package and is designed for the Wilderness Labs Meadow .NET IoT platform.
This driver is part of the 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.
For more information on developing for Meadow, visit developer.wildernesslabs.co.
To view all Wilderness Labs open-source projects, including samples, visit github.com/wildernesslabs.
Installation
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.Camera.UsefulSensors.TinyCodeReader
Usage
TinyCodeReader tinyCodeReader;
public override Task Initialize()
{
Resolver.Log.Info("Initialize...");
tinyCodeReader = new TinyCodeReader(Device.CreateI2cBus());
return Task.CompletedTask;
}
public override Task Run()
{
var qrCode = tinyCodeReader.ReadCode();
if (qrCode != null)
{
Resolver.Log.Info($"QR Code: {qrCode}");
}
else
{
Resolver.Log.Info("No QR Code Found");
}
tinyCodeReader.CodeRead += TinyCodeReader_CodeRead;
tinyCodeReader.StartUpdating(TimeSpan.FromSeconds(1));
return Task.CompletedTask;
}
private void TinyCodeReader_CodeRead(object sender, string e)
{
Resolver.Log.Info($"QRCode message: {e} ({DateTime.Now})");
}
How to Contribute
Need Help?
If you have questions or need assistance, please join the Wilderness Labs community on Slack.
About Meadow
Meadow is a complete, IoT platform with defense-grade security that runs full .NET applications on embeddable microcontrollers and Linux single-board computers including Raspberry Pi and NVIDIA Jetson.
Build
Use the full .NET platform and tooling such as Visual Studio and plug-and-play hardware drivers to painlessly build IoT solutions.
Connect
Utilize native support for WiFi, Ethernet, and Cellular connectivity to send sensor data to the Cloud and remotely control your peripherals.
Deploy
Instantly deploy and manage your fleet in the cloud for OtA, health-monitoring, logs, command + control, and enterprise backend integrations.