public void Dispose()
        {
            dcPin.Dispose();
            resetPin.Dispose();
            SPIBusSingleton.WriteDirect(spiConfig, SpiBuffer);

            dcPin         = null;
            resetPin      = null;
            SpiBuffer     = null;
            displayBuffer = null;
        }
 public void Refresh()
 {
     SPIBusSingleton.WriteDirect(spiConfig, displayBuffer);
 }
 protected void SendCommand(Command cmd)
 {
     SpiBuffer[0] = (byte)cmd;
     SPIBusSingleton.WriteDirect(spiConfig, SpiBuffer);
 }