Merge pull request #276 from lacklustrlabs/Adafruit_SSD1306_STM32_swap

Add swap() function to ssd1306_128x64_i2c_STM32 as example would not build…
This commit is contained in:
Roger Clark 2017-07-04 08:39:56 +10:00 committed by GitHub
commit 1189a3569c
1 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,10 @@ HardWire HWIRE(2,I2C_FAST_MODE); // I2c2
#include "Adafruit_GFX.h"
#include "Adafruit_SSD1306_STM32.h"
#ifndef swap
#define swap(a, b) { int16_t t = a; a = b; b = t; }
#endif
// the memory buffer for the LCD
static uint8_t buffer[SSD1306_LCDHEIGHT * SSD1306_LCDWIDTH / 8] = {