adafruit / Adafruit_SSD1306

Arduino library for SSD1306 monochrome 128x64 and 128x32 OLEDs
http://www.adafruit.com/category/63_98
Other
1.75k stars 964 forks source link

Replace boolean with standard bool #176

Closed wecassidy closed 4 years ago

wecassidy commented 4 years ago

This PR changes everything of type boolean to be of type bool. The two types are equivalent: the Arduino AVR core just typedefs boolean to bool, so no downstream code should be affected by this change. According to the Arduino Reference, the standard bool type is preferred to boolean; some cores (e.g. STM32Duino) even deprecate the boolean type alias.

This change should not break any code, given that boolean is an alias for the standard bool. If anything, it will make it the library work more broadly as it will work with Arduino-compatible boards that don't define a boolean type.