Exemplo n.º 1
0
        /// <summary>
        /// Fill the screen with a color
        /// </summary>
        /// <param name="command">Start Data Transmission Command</param>
        /// <param name="rgb">Color to fill the screen</param>
        private void FillColor(Epd7In5b_V2Commands command, ByteColor rgb)
        {
            var outputLine = GetColoredLineOnDevice(rgb);

            SendCommand(command);

            for (var y = 0; y < Height; y++)
            {
                SendData(outputLine);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Helper to send a Command based o the Epd7In5b_V2Commands Enum
 /// </summary>
 /// <param name="command">Command to send</param>
 private void SendCommand(Epd7In5b_V2Commands command)
 {
     SendCommand((byte)command);
 }