sparkfun / SparkFun_Micro_OLED_Arduino_Library

Arduino library for the SparkFun Micro OLED - a breakout board for a monochrome, 0.66", 64x48 OLED display.
Other
83 stars 60 forks source link

Change swap def to swapOLED, to avoid problems with some platforms #15

Closed bryanmtdt closed 6 years ago

bryanmtdt commented 7 years ago

ESP32 platform had problems to compile with the MicroOLED because it already have a swap function. xtensa-esp32-elf/include/c++/5.2.0/bits/exception_ptr.h

The swapOLED worked fine on the ESP32 thing (cube test)

jimblom commented 6 years ago

This looks good. swapOLED doesn't really need to be exposed in the header file, so I'm going to move it to the cpp.

Thanks for contributing! Sorry for the slow response.