Screens
This commit is contained in:
parent
d63c29e9b3
commit
7c1fda5bc4
@ -108,5 +108,13 @@ namespace Matomat
|
|||||||
{
|
{
|
||||||
return shutdown;
|
return shutdown;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal void GetInitStatus()
|
||||||
|
{
|
||||||
|
lcd.print("²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²abcdef 321" +
|
||||||
|
"² MATOMAT Wilkommen! ²ghijkl 123" +
|
||||||
|
"² Frohes genießen der Mate ²mnopqr 066" +
|
||||||
|
"²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²stuvwx 001");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ namespace Matomat
|
|||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
Thread.Sleep(1);
|
Thread.Sleep(1);
|
||||||
char k = 'r';
|
char k = 'k';
|
||||||
if (k == 'r')
|
if (k == 'r')
|
||||||
{
|
{
|
||||||
data.id = rfid.getCardID();
|
data.id = rfid.getCardID();
|
||||||
|
@ -68,6 +68,7 @@ namespace Matomat
|
|||||||
{
|
{
|
||||||
this.disable = true;
|
this.disable = true;
|
||||||
}
|
}
|
||||||
|
this.createChars();
|
||||||
messages = new Queue<Message>();
|
messages = new Queue<Message>();
|
||||||
Thread workerThread = new Thread(this.DoWork);
|
Thread workerThread = new Thread(this.DoWork);
|
||||||
workerThread.Start();
|
workerThread.Start();
|
||||||
@ -109,7 +110,7 @@ namespace Matomat
|
|||||||
}
|
}
|
||||||
Console.WriteLine(text);
|
Console.WriteLine(text);
|
||||||
this.displayClear();
|
this.displayClear();
|
||||||
byte[] btext = text.ToCharArray("ÄÖÜäöüß²€", new byte[] { 0xE1, 0xEF, 0xF5, 0xE1, 0xEF, 0xF5, 0xE2, 0xFF, 0xFF});
|
byte[] btext = text.ToCharArray("ÄÖÜäöüß²€", new byte[] { 0xE1, 0xEF, 0xF5, 0xE1, 0xEF, 0xF5, 0xE2, 0xFF, 0x80});
|
||||||
byte[] upper;
|
byte[] upper;
|
||||||
byte[] lower;
|
byte[] lower;
|
||||||
if (text.Length > 80)
|
if (text.Length > 80)
|
||||||
@ -145,6 +146,11 @@ namespace Matomat
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void createChars()
|
||||||
|
{
|
||||||
|
this.displayEscCode("UDC0GH_H_HG@");
|
||||||
|
}
|
||||||
|
|
||||||
private void displayEscCode(string code)
|
private void displayEscCode(string code)
|
||||||
{
|
{
|
||||||
this.displayCode(new byte[] { 0x1b });
|
this.displayCode(new byte[] { 0x1b });
|
||||||
|
@ -25,16 +25,8 @@ namespace Matomat
|
|||||||
{
|
{
|
||||||
while (!_shouldStop)
|
while (!_shouldStop)
|
||||||
{
|
{
|
||||||
lcd.print("²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²abcdef 321"+
|
automat.GetInitStatus();
|
||||||
"² MATOMAT Wilkommen! ²ghijkl 123"+
|
|
||||||
"² Frohes genießen der Mate ²mnopqr 066"+
|
|
||||||
"²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²stuvwx 001");
|
|
||||||
InputData input = inp.getAnyInput(0);
|
InputData input = inp.getAnyInput(0);
|
||||||
|
|
||||||
/*int userId = rfid.getCardID();
|
|
||||||
|
|
||||||
* ;
|
|
||||||
long codeId = barcode.getCodeID();*/
|
|
||||||
automat.doJob(input);
|
automat.doJob(input);
|
||||||
}
|
}
|
||||||
Console.WriteLine("worker thread: terminating gracefully.");
|
Console.WriteLine("worker thread: terminating gracefully.");
|
||||||
|
Loading…
Reference in New Issue
Block a user