8000 Replace boolean type with bool in examples · arduino/ArduinoCore-arc32@0482f6b · GitHub
[go: up one dir, main page]

Skip to content
< 10000 header class="HeaderMktg header-logged-out js-details-container js-header Details f4 py-3" role="banner" data-is-top="true" data-color-mode=light data-light-theme=light data-dark-theme=dark>

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0482f6b

Browse files
committed
Replace boolean type with bool in examples
This is part of a move to encourage use of the standard bool type over Arduino's non-standard boolean type alias.
1 parent 00f50b3 commit 0482f6b

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include "Cu 10000 rieIMU.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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)
0