Skip to content

Commit

Permalink
Merge pull request arduino#585 from per1234/boolean-bool
Browse files Browse the repository at this point in the history
Replace boolean type with bool in examples
  • Loading branch information
pnndra authored May 7, 2019
2 parents 00f50b3 + 0482f6b commit 09026ef
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void loop() {
char buttonValue = digitalRead(buttonPin);

// has the value changed since the last read
boolean buttonChanged = (buttonCharacteristic.value() != buttonValue);
bool buttonChanged = (buttonCharacteristic.value() != buttonValue);

if (buttonChanged) {
// button state changed, update characteristics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <CurieI2SDMA.h>

const int BUFF_SIZE=64;
boolean blinkState = true; // state of the LED
bool blinkState = true; // state of the LED
uint32_t dataBuff[BUFF_SIZE];
uint32_t loop_count = 0;
void setup()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "CurieIMU.h"

boolean blinkState = false; // state of the LED
bool blinkState = false; // state of the LED
unsigned long loopTime = 0; // get the time since program started
unsigned long interruptsTime = 0; // get the time when free fall event is detected

Expand Down
2 changes: 1 addition & 1 deletion libraries/CurieIMU/examples/MotionDetect/MotionDetect.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "CurieIMU.h"

boolean blinkState = false; // state of the LED
bool blinkState = false; // state of the LED
unsigned long loopTime = 0; // get the time since program started
unsigned long interruptsTime = 0; // get the time when motion event is detected

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int ax, ay, az; // accelerometer values
int gx, gy, gz; // gyrometer values

const int ledPin = 13; // activity LED pin
boolean blinkState = false; // state of the LED
bool blinkState = false; // state of the LED

int calibrateOffsets = 1; // int to determine whether calibration takes place or not

Expand Down
2 changes: 1 addition & 1 deletion libraries/CurieIMU/examples/ShockDetect/ShockDetect.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "CurieIMU.h"

boolean blinkState = false; // state of the LED
bool blinkState = false; // state of the LED

void setup() {
Serial.begin(9600); // initialize Serial communication
Expand Down
4 changes: 2 additions & 2 deletions libraries/CurieIMU/examples/StepCount/StepCount.ino
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
*/
const int ledPin = 13;

boolean stepEventsEnabeled = true; // whether you're polling or using events
bool stepEventsEnabeled = true; // whether you're polling or using events
long lastStepCount = 0; // step count on previous polling check
boolean blinkState = false; // state of the LED
bool blinkState = false; // state of the LED

void setup() {
Serial.begin(9600); // initialize Serial communication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
#include "CurieIMU.h"

boolean ledState = false; // state of the LED
bool ledState = false; // state of the LED
void setup() {
Serial.begin(9600); // initialize Serial communication
while(!Serial) ; // wait for serial port to connect.
Expand Down
2 changes: 1 addition & 1 deletion libraries/Wire/examples/bus_scan/bus_scan.ino
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void setup()
while(!Serial);
}

boolean toggle = false; // state of the LED
bool toggle = false; // state of the LED
void loop()
{
toggle = !toggle;
Expand Down

0 comments on commit 09026ef

Please sign in to comment.