Replace boolean with standard bool

This commit is contained in:
wecassidy
2020-06-30 20:06:46 -07:00
parent d4edaa0225
commit ad9c3cd7c8
2 changed files with 12 additions and 12 deletions
+7 -7
View File
@@ -457,8 +457,8 @@ void Adafruit_SSD1306::ssd1306_command(uint8_t c) {
proceeding.
@note MUST call this function before any drawing or updates!
*/
boolean Adafruit_SSD1306::begin(uint8_t vcs, uint8_t addr, boolean reset,
boolean periphBegin) {
bool Adafruit_SSD1306::begin(uint8_t vcs, uint8_t addr, bool reset,
bool periphBegin) {
if ((!buffer) && !(buffer = (uint8_t *)malloc(WIDTH * ((HEIGHT + 7) / 8))))
return false;
@@ -662,7 +662,7 @@ void Adafruit_SSD1306::clearDisplay(void) {
*/
void Adafruit_SSD1306::drawFastHLine(int16_t x, int16_t y, int16_t w,
uint16_t color) {
boolean bSwap = false;
bool bSwap = false;
switch (rotation) {
case 1:
// 90 degree rotation, swap x & y for rotation, then invert x
@@ -745,7 +745,7 @@ void Adafruit_SSD1306::drawFastHLineInternal(int16_t x, int16_t y, int16_t w,
*/
void Adafruit_SSD1306::drawFastVLine(int16_t x, int16_t y, int16_t h,
uint16_t color) {
boolean bSwap = false;
bool bSwap = false;
switch (rotation) {
case 1:
// 90 degree rotation, swap x & y for rotation,
@@ -882,7 +882,7 @@ void Adafruit_SSD1306::drawFastVLineInternal(int16_t x, int16_t __y,
@note Reads from buffer contents; may not reflect current contents of
screen if display() has not been called.
*/
boolean Adafruit_SSD1306::getPixel(int16_t x, int16_t y) {
bool Adafruit_SSD1306::getPixel(int16_t x, int16_t y) {
if ((x >= 0) && (x < width()) && (y >= 0) && (y < height())) {
// Pixel is in-bounds. Rotate coordinates if needed.
switch (getRotation()) {
@@ -1092,7 +1092,7 @@ void Adafruit_SSD1306::stopscroll(void) {
enabled, drawing SSD1306_BLACK (value 0) pixels will actually draw
white, SSD1306_WHITE (value 1) will draw black.
*/
void Adafruit_SSD1306::invertDisplay(boolean i) {
void Adafruit_SSD1306::invertDisplay(bool i) {
TRANSACTION_START
ssd1306_command1(i ? SSD1306_INVERTDISPLAY : SSD1306_NORMALDISPLAY);
TRANSACTION_END
@@ -1106,7 +1106,7 @@ void Adafruit_SSD1306::invertDisplay(boolean i) {
@note This has an immediate effect on the display, no need to call the
display() function -- buffer contents are not changed.
*/
void Adafruit_SSD1306::dim(boolean dim) {
void Adafruit_SSD1306::dim(bool dim) {
// the range of contrast to too small to be really useful
// it is useful to dim the display
TRANSACTION_START