Add Waked event and Wake command

This commit is contained in:
2020-11-24 16:30:45 +01:00
parent 10e15f3d5c
commit 2162ebad89
2 changed files with 11 additions and 5 deletions

View File

@@ -19,10 +19,9 @@ namespace WaveshareUARTFingerprintSensor.Sample
sensor.Start();
if (sensor.TryGetUserCount(out ushort count))
{
Console.WriteLine(count);
}
sensor.Waked += s => sensor.Wake();
sensor.Sleep();
Console.WriteLine("End");