The ssd1306_128x64_i2c_STM32 example would not build because of a missing swap() macro.

This commit is contained in:
lacklustrlabs 2017-04-27 18:22:18 +02:00
parent e3753df280
commit 1d29d13967
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] = {