public void WriteScreen(int id, IkarusScreenConfig data) { byte[] buffer = new byte[data.size_bytes()]; for (int i = 0; i < buffer.Length; i++) buffer[i] = data.getByte(i); Write(Comandos.Screen, id, 0, buffer); Flush(); RemoteIkarus(0,id); }
public IkarusScreenConfig ReadScreen(int id) { IkarusScreenConfig data = new IkarusScreenConfig(); byte[] buffer = Read(Comandos.Screen,(byte)id,0, data.size_bytes()); for (int i = 0; i < buffer.Length; i++) data.setByte(i, buffer[i]); return data; }