Skip to content

Replace boolean type with bool in examples #585

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
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
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