diff --git a/examples/Arduino/TFTEtchASketch/TFTEtchASketch.ino b/examples/Arduino/TFTEtchASketch/TFTEtchASketch.ino index 41c0200..e7093b9 100644 --- a/examples/Arduino/TFTEtchASketch/TFTEtchASketch.ino +++ b/examples/Arduino/TFTEtchASketch/TFTEtchASketch.ino @@ -51,8 +51,8 @@ void loop() { int yValue = analogRead(A1); // map the values and update the position - xPos = xPos + (map(xValue, 0, 1023, 2, -2)); - yPos = yPos + (map(yValue, 0, 1023, -2, 2)); + xPos = xPos + (map(xValue, 0, 1023, 2, -3)); + yPos = yPos + (map(yValue, 0, 1023, -2, 3)); // don't let the point go past the screen edges if (xPos > 159) { @@ -75,7 +75,6 @@ void loop() { TFTscreen.point(xPos, yPos); // read the value of the pin, and erase the screen if pressed - if (digitalRead(erasePin) == HIGH) { TFTscreen.background(0, 0, 0); }