Skip to content

Replace boolean type with bool in examples #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/Arduino/TFTPong/TFTPong.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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))) {
Expand Down
4 changes: 2 additions & 2 deletions examples/Esplora/EsploraTFTPong/EsploraTFTPong.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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))) {
Expand Down