The screenshot is a 480×272 RGB buffer. Each pixel uses three consecutive bytes in red, green, blue order.
Simulated touches interact with the current brain UI. Confirm coordinates and screen state before sending input.