Skip to content

Commit bf880c9

Browse files
committed
forgot the adagfx_swap!
1 parent a440de8 commit bf880c9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Adafruit_SSD1325.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,15 @@ void Adafruit_SSD1325::drawPixel(int16_t x, int16_t y, uint16_t color) {
117117
// check rotation, move pixel around if necessary
118118
switch (getRotation()) {
119119
case 1:
120-
AdaGFX_swap(x, y);
120+
adagfx_swap(x, y);
121121
x = WIDTH - x - 1;
122122
break;
123123
case 2:
124124
x = WIDTH - x - 1;
125125
y = HEIGHT - y - 1;
126126
break;
127127
case 3:
128-
AdaGFX_swap(x, y);
128+
adagfx_swap(x, y);
129129
y = HEIGHT - y - 1;
130130
break;
131131
}
@@ -170,7 +170,7 @@ void Adafruit_SSD1325::begin(void) {
170170
// bring out of reset
171171
digitalWrite(rst, HIGH);
172172

173-
Serial.println("reset");
173+
//Serial.println("reset");
174174
delay(500);
175175
command(SSD1325_DISPLAYOFF); /* display off */
176176
command(SSD1325_SETCLOCK); /* set osc division */

Adafruit_SSD1325.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ All text above, and the splash screen must be included in any redistribution
2525

2626
#include <Adafruit_GFX.h>
2727

28+
#ifndef adagfx_swap
29+
#define adagfx_swap(a, b) { uint8_t t = a; a = b; b = t; }
30+
#endif
31+
2832
#define BLACK 0
2933
#define WHITE 1
3034

0 commit comments

Comments
 (0)