From 2890db5f720060aa654b64bf2baf16313f8a2835 Mon Sep 17 00:00:00 2001 From: Benjamin <88098139+Bexin3@users.noreply.github.com> Date: Sun, 19 May 2024 13:29:35 +0100 Subject: [PATCH] Update ExampleReplaceRectangles.ino --- .../ExampleReplaceRectangles.ino | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/ExampleReplaceRectangles/ExampleReplaceRectangles.ino b/examples/ExampleReplaceRectangles/ExampleReplaceRectangles.ino index de203de..9331ea3 100644 --- a/examples/ExampleReplaceRectangles/ExampleReplaceRectangles.ino +++ b/examples/ExampleReplaceRectangles/ExampleReplaceRectangles.ino @@ -200,17 +200,14 @@ zoom = 1; rotation = 0; shifti = 400; //Horizontal shiftj = 240; //Vertical +testRast = GetRasterData(0, 0, 1, 0, 800, 480); +testRast2 = GetRasterData(0, 0, 1, 0, 0, 0); +RectangleReplacement(testRast, testRast2, rand()); +testRast = testRast2; }; -if (contacts == 4 && PreviousContacts != 4) { -if (pause == 0) { -pause = 1; -} else { -pause = 0; -}; -}; //Serial.println(shiftj); //Serial.println(zoom); -} \ No newline at end of file +}