Skip to content

Commit a7ceffe

Browse files
Fix for recent Adafruit_GFX change
1 parent b9a5e9d commit a7ceffe

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

Adafruit_SSD1325.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ All text above, and the splash screen below must be included in any redistributi
2626

2727
#include "glcdfont.c"
2828

29-
// a 5x7 font table
30-
extern uint8_t PROGMEM font[];
31-
3229
// the memory buffer for the LCD
3330

3431
static uint8_t buffer[SSD1325_LCDHEIGHT * SSD1325_LCDWIDTH / 8] = {
@@ -127,8 +124,6 @@ void Adafruit_SSD1325::drawPixel(int16_t x, int16_t y, uint16_t color) {
127124
}
128125

129126
void Adafruit_SSD1325::begin(void) {
130-
constructor(128, 64);
131-
132127
// set pin directions
133128
pinMode(sid, OUTPUT);
134129
pinMode(sclk, OUTPUT);

Adafruit_SSD1325.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,8 @@ All text above, and the splash screen must be included in any redistribution
9595

9696
class Adafruit_SSD1325 : public Adafruit_GFX {
9797
public:
98-
Adafruit_SSD1325(int8_t SID, int8_t SCLK, int8_t DC, int8_t RST, int8_t CS) :sid(SID), sclk(SCLK), dc(DC), rst(RST), cs(CS) {}
99-
Adafruit_SSD1325(int8_t SID, int8_t SCLK, int8_t DC, int8_t RST) :sid(SID), sclk(SCLK), dc(DC), rst(RST), cs(-1) {}
100-
98+
Adafruit_SSD1325(int8_t SID, int8_t SCLK, int8_t DC, int8_t RST, int8_t CS) : Adafruit_GFX(SSD1325_LCDWIDTH, SSD1325_LCDHEIGHT), sid(SID), sclk(SCLK), dc(DC), rst(RST), cs(CS) {}
99+
Adafruit_SSD1325(int8_t SID, int8_t SCLK, int8_t DC, int8_t RST) : Adafruit_GFX(SSD1325_LCDWIDTH, SSD1325_LCDHEIGHT), sid(SID), sclk(SCLK), dc(DC), rst(RST), cs(-1) {}
101100

102101
void begin(void);
103102
void command(uint8_t c);

0 commit comments

Comments
 (0)