-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
37 lines (32 loc) · 1.13 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System.Drawing;
using System.Threading;
namespace myApp
{
class Program
{
static void Main(string[] args)
{
App app = new App();
while (true) {
app.RgbLed.SetColor(Color.Green);
for (int i = 0; i < 5; i++)
{
app.Mifare.ScanForISO14443TypeADevices(1); //we only poll for 1ms every 200 ms as the spi bus is shared with the screen
Thread.Sleep(199);
}
app.RgbLed.SetColor(Color.Blue);
for (int i = 0; i < 5; i++)
{
app.Mifare.ScanForISO14443TypeADevices(1); //we only poll for 1ms every 200 ms as the spi bus is shared with the screen
Thread.Sleep(199);
}
app.RgbLed.SetColor(Color.Red);
for (int i = 0; i < 5; i++)
{
app.Mifare.ScanForISO14443TypeADevices(1); //we only poll for 1ms every 200 ms as the spi bus is shared with the screen
Thread.Sleep(199);
}
}
}
}
}