Skip to content

Commit 4680e35

Browse files
per1234cmaglie
authored andcommitted
Replace boolean type with bool in examples
This is part of a move to encourage use of the standard bool type over Arduino's non-standard boolean type alias.
1 parent 640a184 commit 4680e35

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/Arduino/TFTPong/TFTPong.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ void moveBall() {
121121

122122
// this function checks the position of the ball
123123
// to see if it intersects with the paddle
124-
boolean inPaddle(int x, int y, int rectX, int rectY, int rectWidth, int rectHeight) {
125-
boolean result = false;
124+
bool inPaddle(int x, int y, int rectX, int rectY, int rectWidth, int rectHeight) {
125+
bool result = false;
126126

127127
if ((x >= rectX && x <= (rectX + rectWidth)) &&
128128
(y >= rectY && y <= (rectY + rectHeight))) {

examples/Esplora/EsploraTFTPong/EsploraTFTPong.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ void moveBall() {
114114

115115
// this function checks the position of the ball
116116
// to see if it intersects with the paddle
117-
boolean inPaddle(int x, int y, int rectX, int rectY, int rectWidth, int rectHeight) {
118-
boolean result = false;
117+
bool inPaddle(int x, int y, int rectX, int rectY, int rectWidth, int rectHeight) {
118+
bool result = false;
119119

120120
if ((x >= rectX && x <= (rectX + rectWidth)) &&
121121
(y >= rectY && y <= (rectY + rectHeight))) {

0 commit comments

Comments
 (0)