Beispiel #1
0
 private void DotSet(ucLoRa.DOT_INF dot)
 {
     byte address = (byte)((uint)dot >> 3);
     byte num1 = (byte)((uint)dot & 7);
     byte num2 = 1;
     for (; num1 != 0; --num1)
         num2 <<= 1;
     ftdi.LCDOrValue(address, num2);
 }
Beispiel #2
0
 private void DotClear(ucLoRa.DOT_INF dot)
 {
     byte address = (byte)((uint)dot >> 3);
     byte num1 = (byte)((uint)dot & 7);
     uint num2 = 254;
     for (; num1 != 0; --num1)
         num2 = (byte)((num2 << 1) | 1);
     ftdi.LCDAndValue(address, (byte)num2);
 }