From 15ddf4e23cd2543336a33ac3a64a45ea0929d74e Mon Sep 17 00:00:00 2001 From: Adam DeMuri Date: Sat, 15 Jul 2023 12:52:34 -0600 Subject: [PATCH] Replace 'boolean' with 'bool' --- Adafruit_ST77xx.cpp | 6 +++--- Adafruit_ST77xx.h | 6 +++--- examples/seesaw_shield18_test/seesaw_shield18_test.ino | 4 ++-- examples/shieldtest/shieldtest.ino | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Adafruit_ST77xx.cpp b/Adafruit_ST77xx.cpp index dc671b2..c6a9de8 100644 --- a/Adafruit_ST77xx.cpp +++ b/Adafruit_ST77xx.cpp @@ -224,7 +224,7 @@ void Adafruit_ST77xx::setColRowStart(int8_t col, int8_t row) { @param enable True if you want the display ON, false OFF */ /**************************************************************************/ -void Adafruit_ST77xx::enableDisplay(boolean enable) { +void Adafruit_ST77xx::enableDisplay(bool enable) { sendCommand(enable ? ST77XX_DISPON : ST77XX_DISPOFF); } @@ -234,7 +234,7 @@ void Adafruit_ST77xx::enableDisplay(boolean enable) { @param enable True if you want the TE pin ON, false OFF */ /**************************************************************************/ -void Adafruit_ST77xx::enableTearing(boolean enable) { +void Adafruit_ST77xx::enableTearing(bool enable) { sendCommand(enable ? ST77XX_TEON : ST77XX_TEOFF); } @@ -244,7 +244,7 @@ void Adafruit_ST77xx::enableTearing(boolean enable) { @param enable True if you want sleep mode ON, false OFF */ /**************************************************************************/ -void Adafruit_ST77xx::enableSleep(boolean enable) { +void Adafruit_ST77xx::enableSleep(bool enable) { sendCommand(enable ? ST77XX_SLPIN : ST77XX_SLPOUT); } diff --git a/Adafruit_ST77xx.h b/Adafruit_ST77xx.h index 599b299..e322a32 100644 --- a/Adafruit_ST77xx.h +++ b/Adafruit_ST77xx.h @@ -99,9 +99,9 @@ class Adafruit_ST77xx : public Adafruit_SPITFT { void setAddrWindow(uint16_t x, uint16_t y, uint16_t w, uint16_t h); void setRotation(uint8_t r); - void enableDisplay(boolean enable); - void enableTearing(boolean enable); - void enableSleep(boolean enable); + void enableDisplay(bool enable); + void enableTearing(bool enable); + void enableSleep(bool enable); protected: uint8_t _colstart = 0, ///< Some displays need this changed to offset diff --git a/examples/seesaw_shield18_test/seesaw_shield18_test.ino b/examples/seesaw_shield18_test/seesaw_shield18_test.ino index 02bf727..f19fbf1 100644 --- a/examples/seesaw_shield18_test/seesaw_shield18_test.ino +++ b/examples/seesaw_shield18_test/seesaw_shield18_test.ino @@ -185,8 +185,8 @@ void bmpDraw(char *filename, uint8_t x, uint16_t y) { uint32_t rowSize; // Not always = bmpWidth; may have padding uint8_t sdbuffer[3*BUFFPIXEL]; // pixel buffer (R+G+B per pixel) uint8_t buffidx = sizeof(sdbuffer); // Current position in sdbuffer - boolean goodBmp = false; // Set to true on valid header parse - boolean flip = true; // BMP is stored bottom-to-top + bool goodBmp = false; // Set to true on valid header parse + bool flip = true; // BMP is stored bottom-to-top int w, h, row, col; uint8_t r, g, b; uint32_t pos = 0, startTime = millis(); diff --git a/examples/shieldtest/shieldtest.ino b/examples/shieldtest/shieldtest.ino index 1bf032a..4f674d5 100644 --- a/examples/shieldtest/shieldtest.ino +++ b/examples/shieldtest/shieldtest.ino @@ -134,8 +134,8 @@ void bmpDraw(char *filename, uint8_t x, uint8_t y) { uint32_t rowSize; // Not always = bmpWidth; may have padding uint8_t sdbuffer[3*BUFFPIXEL]; // pixel buffer (R+G+B per pixel) uint8_t buffidx = sizeof(sdbuffer); // Current position in sdbuffer - boolean goodBmp = false; // Set to true on valid header parse - boolean flip = true; // BMP is stored bottom-to-top + bool goodBmp = false; // Set to true on valid header parse + bool flip = true; // BMP is stored bottom-to-top int w, h, row, col; uint8_t r, g, b; uint32_t pos = 0, startTime = millis();