From f6e7ee40e764d6a5309ab3312200f1c519e26076 Mon Sep 17 00:00:00 2001 From: rogosher Date: Wed, 30 Mar 2016 15:59:17 -0700 Subject: [PATCH] using bool type --- src/core/core.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/core.cpp b/src/core/core.cpp index 6102f07..70489fe 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -260,26 +260,26 @@ void ArduboyCore::sendLCDCommand(uint8_t command) // invert the display or set to normal // when inverted, a pixel set to 0 will be on -void ArduboyCore::invert(boolean inverse) +void ArduboyCore::invert(bool inverse) { sendLCDCommand(inverse ? OLED_PIXELS_INVERTED : OLED_PIXELS_NORMAL); } // turn all display pixels on, ignoring buffer contents // or set to normal buffer display -void ArduboyCore::allPixelsOn(boolean on) +void ArduboyCore::allPixelsOn(bool on) { sendLCDCommand(on ? OLED_ALL_PIXELS_ON : OLED_PIXELS_FROM_RAM); } // flip the display vertically or set to normal -void ArduboyCore::flipVertical(boolean flipped) +void ArduboyCore::flipVertical(bool flipped) { sendLCDCommand(flipped ? OLED_VERTICAL_FLIPPED : OLED_VERTICAL_NORMAL); } // flip the display horizontally or set to normal -void ArduboyCore::flipHorizontal(boolean flipped) +void ArduboyCore::flipHorizontal(bool flipped) { sendLCDCommand(flipped ? OLED_HORIZ_FLIPPED : OLED_HORIZ_NORMAL); }