Skip to content

Replace 'boolean' with 'bool' #189

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions Adafruit_ST77xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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);
}

Expand All @@ -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);
}

Expand Down
6 changes: 3 additions & 3 deletions Adafruit_ST77xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/seesaw_shield18_test/seesaw_shield18_test.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions examples/shieldtest/shieldtest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down