/// <summary> /// Send one Data Byte to the Display /// </summary> /// <param name="data"></param> protected void SendData(byte data) { EPaperDisplayHardware.SpiDcPin = PinValue.High; EPaperDisplayHardware.SpiCsPin = PinValue.Low; EPaperDisplayHardware.WriteByte(data); EPaperDisplayHardware.SpiCsPin = PinValue.High; }
//######################################################################################## #region Protected Methods /// <summary> /// Send a Command to the Display /// </summary> /// <param name="command"></param> protected void SendCommand(byte command) { EPaperDisplayHardware.SpiDcPin = PinValue.Low; EPaperDisplayHardware.SpiCsPin = PinValue.Low; EPaperDisplayHardware.WriteByte(command); EPaperDisplayHardware.SpiCsPin = PinValue.High; }
/// <summary> /// Send a Data Array to the Display /// </summary> /// <param name="data"></param> protected void SendData(byte[] data) { EPaperDisplayHardware.SpiDcPin = PinValue.High; EPaperDisplayHardware.SpiCsPin = PinValue.Low; foreach (var dataByte in data) { EPaperDisplayHardware.WriteByte(dataByte); } EPaperDisplayHardware.SpiCsPin = PinValue.High; }