Skip to content
This repository was archived by the owner on Sep 30, 2021. It is now read-only.

Commit 07b0a40

Browse files
authored
Merge pull request #1 from per1234/boolean-bool
Replace boolean type with bool in examples
2 parents 65a47d2 + 0891a3e commit 07b0a40

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/explore/R03_Disco_Bot/R03_Disco_Bot.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void runScript() {
105105
}
106106

107107
// instead of delay, use this timer
108-
boolean waiting() {
108+
bool waiting() {
109109
if (millis() - waitFrom >= waitTime) {
110110
return false;
111111
} else {
@@ -156,7 +156,7 @@ void setInterface() {
156156
}
157157

158158
// display the next song
159-
void select(int seq, boolean onOff) {
159+
void select(int seq, bool onOff) {
160160
if (onOff) { //select
161161
Robot.stroke(0, 0, 0);
162162
Robot.text(musics[seq], 0, 0);

examples/explore/R07_Runaway_Robot/R07_Runaway_Robot.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ float getDistance() {
6060
}
6161

6262
// make a happy or sad face
63-
void setFace(boolean onOff) {
63+
void setFace(bool onOff) {
6464
if (onOff) {
6565
// if true show a happy face
6666
Robot.background(0, 0, 255);

examples/explore/R08_Remote_Control/R08_Remote_Control.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#define IR_CODE_TURN_RIGHT 284127885
3737
#define IR_CODE_CONTINUE -1
3838

39-
boolean isActing = false; //If the robot is executing command from remote
39+
bool isActing = false; //If the robot is executing command from remote
4040
long timer;
4141
const long TIME_OUT = 150;
4242

0 commit comments

Comments
 (0)