/// <summary> /// Initialize a monochrome 128x64 LCD of the size pointed by the sLine text received /// </summary> /// <param name="sLine">Text as received from the device realtime data</param> public bool ProcessReceivedString(string sLine) { bool bOk = true; try { m_Time = DateTime.Now; Model = RFECommunicator.eModel.MODEL_NONE; //Capture only if we are inside bounds int nTotalSize = sLine.Length - 2; //we discard the first two chars as they are $D if (nTotalSize >= 128 * 8) { CreateScreen(128, 8); for (int nInd = 0; nInd < nTotalSize; nInd++) { m_arrRemoteScreenData[nInd] = Convert.ToByte(sLine[nInd + 2]); } } } catch (Exception) { bOk = false; } return(bOk); }
/// <summary> /// Initialize a monochrome 128x64 LCD of the size pointed by the sLine text received /// </summary> /// <param name="sLine">Text as received from the device realtime data</param> public bool ProcessReceivedString(string sLine) { bool bOk = true; try { m_Time = DateTime.Now; Model = RFECommunicator.eModel.MODEL_NONE; //Capture only if we are inside bounds int nTotalSize = sLine.Length - 2; //we discard the first two chars as they are $D if (nTotalSize >= 128 * 8) { CreateScreen(128, 8); for (int nInd = 0; nInd < nTotalSize; nInd++) { m_arrRemoteScreenData[nInd] = Convert.ToByte(sLine[nInd + 2]); } } } catch (Exception) { bOk = false; } return bOk; }
/// <summary> /// Default constructor /// </summary> public RFEScreenData() { m_Time = DateTime.Now; Model = RFECommunicator.eModel.MODEL_NONE; }
/// <summary> /// Initialize a monochrome LCD with standard X * Y size, in bytes. For instance a 128x64 LCD has x=128 bytes and y=(64/8)=8 bytes /// </summary> public RFEScreenData(int nBytesX, int nBytesY) { m_Time = DateTime.Now; Model = RFECommunicator.eModel.MODEL_NONE; CreateScreen(nBytesX, nBytesY); }