Skip to content

Commit 09026ef

Browse files
authored
Merge pull request #585 from per1234/boolean-bool
Replace boolean type with bool in examples
2 parents 00f50b3 + 0482f6b commit 09026ef

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

libraries/CurieBLE/examples/Peripheral/ButtonLED/ButtonLED.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void loop() {
5353
char buttonValue = digitalRead(buttonPin);
5454

5555
// has the value changed since the last read
56-
boolean buttonChanged = (buttonCharacteristic.value() != buttonValue);
56+
bool buttonChanged = (buttonCharacteristic.value() != buttonValue);
5757

5858
if (buttonChanged) {
5959
// button state changed, update characteristics

libraries/CurieI2S/examples/I2SDMA_TXCallBack/I2SDMA_TXCallBack.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <CurieI2SDMA.h>
1111

1212
const int BUFF_SIZE=64;
13-
boolean blinkState = true; // state of the LED
13+
bool blinkState = true; // state of the LED
1414
uint32_t dataBuff[BUFF_SIZE];
1515
uint32_t loop_count = 0;
1616
void setup()

libraries/CurieIMU/examples/FreeFallDetect/FreeFallDetect.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include "CurieIMU.h"
1212

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

libraries/CurieIMU/examples/MotionDetect/MotionDetect.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include "CurieIMU.h"
1212

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

libraries/CurieIMU/examples/RawImuDataSerial/RawImuDataSerial.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int ax, ay, az; // accelerometer values
3535
int gx, gy, gz; // gyrometer values
3636

3737
const int ledPin = 13; // activity LED pin
38-
boolean blinkState = false; // state of the LED
38+
bool blinkState = false; // state of the LED
3939

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

libraries/CurieIMU/examples/ShockDetect/ShockDetect.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include "CurieIMU.h"
1212

13-
boolean blinkState = false; // state of the LED
13+
bool blinkState = false; // state of the LED
1414

1515
void setup() {
1616
Serial.begin(9600); // initialize Serial communication

libraries/CurieIMU/examples/StepCount/StepCount.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
*/
2121
const int ledPin = 13;
2222

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

2727
void setup() {
2828
Serial.begin(9600); // initialize Serial communication

libraries/CurieIMU/examples/ZeroMotionDetect/ZeroMotionDetect.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
#include "CurieIMU.h"
1111

12-
boolean ledState = false; // state of the LED
12+
bool ledState = false; // state of the LED
1313
void setup() {
1414
Serial.begin(9600); // initialize Serial communication
1515
while(!Serial) ; // wait for serial port to connect.

libraries/Wire/examples/bus_scan/bus_scan.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void setup()
4747
while(!Serial);
4848
}
4949

50-
boolean toggle = false; // state of the LED
50+
bool toggle = false; // state of the LED
5151
void loop()
5252
{
5353
toggle = !toggle;

0 commit comments

Comments
 (0)