47 lines
981 B
C#
47 lines
981 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO.Ports;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Terminal.Gui;
|
|
using Unosquare.RaspberryIO;
|
|
using Unosquare.RaspberryIO.Abstractions;
|
|
using Unosquare.WiringPi;
|
|
|
|
namespace WaveshareUARTFingerprintSensor.Sample
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
if (args.Length > 0)
|
|
{
|
|
switch (args[0])
|
|
{
|
|
case "-c":
|
|
case "--config":
|
|
StartConfig();
|
|
|
|
Environment.Exit(0);
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
StartLoop();
|
|
}
|
|
|
|
private static void StartLoop()
|
|
{
|
|
|
|
}
|
|
|
|
private static void StartConfig()
|
|
{
|
|
Application.Run<TUIManager>();
|
|
}
|
|
}
|
|
}
|