diff --git a/examples/Arduino/TFTPong/TFTPong.ino b/examples/Arduino/TFTPong/TFTPong.ino index 7a61915..f03ee29 100644 --- a/examples/Arduino/TFTPong/TFTPong.ino +++ b/examples/Arduino/TFTPong/TFTPong.ino @@ -121,8 +121,8 @@ void moveBall() { // this function checks the position of the ball // to see if it intersects with the paddle -boolean inPaddle(int x, int y, int rectX, int rectY, int rectWidth, int rectHeight) { - boolean result = false; +bool inPaddle(int x, int y, int rectX, int rectY, int rectWidth, int rectHeight) { + bool result = false; if ((x >= rectX && x <= (rectX + rectWidth)) && (y >= rectY && y <= (rectY + rectHeight))) { diff --git a/examples/Esplora/EsploraTFTPong/EsploraTFTPong.ino b/examples/Esplora/EsploraTFTPong/EsploraTFTPong.ino index 11b1dff..b5d837f 100644 --- a/examples/Esplora/EsploraTFTPong/EsploraTFTPong.ino +++ b/examples/Esplora/EsploraTFTPong/EsploraTFTPong.ino @@ -114,8 +114,8 @@ void moveBall() { // this function checks the position of the ball // to see if it intersects with the paddle -boolean inPaddle(int x, int y, int rectX, int rectY, int rectWidth, int rectHeight) { - boolean result = false; +bool inPaddle(int x, int y, int rectX, int rectY, int rectWidth, int rectHeight) { + bool result = false; if ((x >= rectX && x <= (rectX + rectWidth)) && (y >= rectY && y <= (rectY + rectHeight))) {