Example #1
0
 public DrawingInkyDriver(int width, int height, InkyDisplayColour colour, WriteableBitmap bitmap)
 {
     Width          = width;
     Height         = height;
     _displayColour = colour;
     _bitmap        = bitmap;
     _buffer        = new byte[height, width, 4];
     for (var h = 0; h < Height; h++)
     {
         for (var w = 0; w < Width; w++)
         {
             for (var c = 0; c < 4; c++)
             {
                 _buffer[h, w, c] = 255;
             }
         }
     }
 }
Example #2
0
 /// <summary>
 /// Initialise a new Inky pHAT driver
 /// </summary>
 /// <param name="colour">Display colour</param>
 public InkyPHat(InkyDisplayColour colour)
     : base(212, 104, colour)
 {
 }
Example #3
0
 /// <summary>
 /// Initialise a new Inky wHAT driver
 /// </summary>
 /// <param name="colour">Display colour</param>
 public InkyWHat(InkyDisplayColour colour)
     : base(400, 300, colour)
 {
 }