Skip to content

Commit

Permalink
Add definition for swap
Browse files Browse the repository at this point in the history
  • Loading branch information
driverblock committed Feb 20, 2016
1 parent 99a0576 commit 3a569e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Adafruit_SSD1331.h
Expand Up @@ -20,6 +20,10 @@
#include "WProgram.h"
#endif

#ifndef swap
#define swap(a, b) { uint16_t t = a; a = b; b = t; }
#endif

#ifdef __SAM3X8E__
typedef volatile RwReg PortReg;
typedef uint32_t PortMask;
Expand Down
2 changes: 1 addition & 1 deletion library.properties
@@ -1,5 +1,5 @@
name=Adafruit SSD1331 OLED Driver Library for Arduino
version=1.0.1
version=1.0.2
author=Adafruit
maintainer=Adafruit <info@adafruit.com>
sentence=For 0.96" OLEDs in the Adafruit shop
Expand Down

0 comments on commit 3a569e7

Please sign in to comment.