Reorganize and Add UserManager

This commit is contained in:
2021-01-23 10:52:10 +01:00
parent 6148956bc6
commit 5fe7edcb4c
12 changed files with 215 additions and 206 deletions

View File

@@ -1,4 +1,7 @@
using System;
using Akari.Provider.WaveshareUART;
using Akari.Provider.WaveshareUART.Users;
using Akari.Provider.WaveshareUART.Views;
using System;
using System.Collections.Generic;
using System.IO.Ports;
using System.Linq;
@@ -10,12 +13,15 @@ using Unosquare.RaspberryIO;
using Unosquare.RaspberryIO.Abstractions;
using Unosquare.WiringPi;
namespace WaveshareUARTFingerprintSensor.Sample
namespace Akari.Provider.WaveshareUART
{
class Program
{
static void Main(string[] args)
{
// TODO
args = new[] { "-c" };
if (args.Length > 0)
{
switch (args[0])
@@ -29,13 +35,7 @@ namespace WaveshareUARTFingerprintSensor.Sample
}
}
StartLoop();
}
private static void StartLoop()
{
WaveshareUARTProvider.Instance.FingerprintLoop();
}
private static void StartConfig()