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

Replace boolean type with bool in examples #1

Merged
merged 1 commit into from
May 7, 2019
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/explore/R03_Disco_Bot/R03_Disco_Bot.ino
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void runScript() {
}

// instead of delay, use this timer
boolean waiting() {
bool waiting() {
if (millis() - waitFrom >= waitTime) {
return false;
} else {
Expand Down Expand Up @@ -156,7 +156,7 @@ void setInterface() {
}

// display the next song
void select(int seq, boolean onOff) {
void select(int seq, bool onOff) {
if (onOff) { //select
Robot.stroke(0, 0, 0);
Robot.text(musics[seq], 0, 0);
Expand Down
2 changes: 1 addition & 1 deletion examples/explore/R07_Runaway_Robot/R07_Runaway_Robot.ino
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ float getDistance() {
}

// make a happy or sad face
void setFace(boolean onOff) {
void setFace(bool onOff) {
if (onOff) {
// if true show a happy face
Robot.background(0, 0, 255);
Expand Down
2 changes: 1 addition & 1 deletion examples/explore/R08_Remote_Control/R08_Remote_Control.ino
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#define IR_CODE_TURN_RIGHT 284127885
#define IR_CODE_CONTINUE -1

boolean isActing = false; //If the robot is executing command from remote
bool isActing = false; //If the robot is executing command from remote
long timer;
const long TIME_OUT = 150;

Expand Down