static void Main(string[] args) { LedDisplay display = new LedDisplay(32, 16, SerialPort.GetPortNames()[0]); display.OpenSerial(); display.DrawBitmap(new Bitmap("bitmap.bmp"), 0, 0, 32, 16); display.RefreshDisplay(); for (byte i = 255; i > 0; i -= 5) { Console.WriteLine("Brightness: " + i); display.SetBrightness(i); Thread.Sleep(250); } }