private void FlashButtons(byte port)
 {
     i2cButtonPanel.Write(new byte[] { Mcp23017.GPIOB, 0x00 });
     for (int i = 0; i < 3; i++)
     {
         i2cButtonPanel.Write(new byte[] { Mcp23017.GPIOB, port });
         LcdScreen.Delay(400);
         i2cButtonPanel.Write(new byte[] { Mcp23017.GPIOB, 0x00 });
         LcdScreen.Delay(400);
     }
 }
 public void PrintGameOver()
 {
     Screen.LcdReset();
     Screen.MoveToLine(0x00);
     Screen.PrintLine("     GAME OVER!     ");
     if (p1Count == 0 || p2Count == 0)
     {
         Screen.MoveToLine(0x01);
         Screen.PrintLine("--------------------");
         Screen.MoveToLine(0x02);
         string temp = "Points = " + Convert.ToString(p1Count + p2Count);
         Screen.PrintLine(temp);
         Screen.MoveToLine(0x03);
         Screen.PrintLine("  Congratulations!  ");
     }
     else
     {
         Screen.MoveToLine(0x01);
         if (p1Count > p2Count)
         {
             Screen.PrintLine("   Player 1 wins!   ");
         }
         else if (p2Count > p1Count)
         {
             Screen.PrintLine("   Player 2 wins!   ");
         }
         else
         {
             Screen.PrintLine("    It is a tie!    ");
         }
         Screen.MoveToLine(0x02);
         string temp = "Player 1 = " + Convert.ToString(p1Count);
         Screen.PrintLine(temp);
         Screen.MoveToLine(0x03);
         temp = "Player 2 = " + Convert.ToString(p2Count);
         Screen.PrintLine(temp);
     }
     LcdScreen.Delay(3000);
 }