Skip to content

Commit 3a569e7

Browse files
committed
Add definition for swap
1 parent 99a0576 commit 3a569e7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Adafruit_SSD1331.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
#include "WProgram.h"
2121
#endif
2222

23+
#ifndef swap
24+
#define swap(a, b) { uint16_t t = a; a = b; b = t; }
25+
#endif
26+
2327
#ifdef __SAM3X8E__
2428
typedef volatile RwReg PortReg;
2529
typedef uint32_t PortMask;

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit SSD1331 OLED Driver Library for Arduino
2-
version=1.0.1
2+
version=1.0.2
33
author=Adafruit
44
maintainer=Adafruit <[email protected]>
55
sentence=For 0.96" OLEDs in the Adafruit shop

0 commit comments

Comments
 (0)