Hello,
When I call that Flush() overload, how can I get its parameters in the event handler ?
Hello,
When I call that Flush() overload, how can I get its parameters in the event handler ?
That is not supported but I know why you need it. Make a GitHub issues please
Done.
Meanwhile, I have a workaround :
public void DrawBuffer(Byte[] buffer)
{
SendCommand(ILI9341CommandId.RAMWR);
control.Write(GpioPinValue.High);
if (fullScreen)
{
lock (_socket.LockSpi)
{
spi.Write(buffer, 0, 1024 * 64 - 1);
spi.Write(buffer, 1024 * 64 - 1, 1024 * 64 - 1);
spi.Write(buffer, 1024 * 64 * 2 - 2, 22530);
}
}
else
{
for (Int32 i = 0, start = ((activeY * MaxWidth) + activeX) << 1; i < activeHeight; i++, start += MaxWidth << 1)
{
lock (_socket.LockSpi)
{
spi.Write(buffer, start, activeWidth << 1);
}
}
}
}
Edit: activeX, activeY, activeWidth and activeHeight represent the active window that has to be displayed.