Skip to content

Commit a440de8

Browse files
committed
clean up & rename
1 parent f852c15 commit a440de8

File tree

4 files changed

+16
-24
lines changed

4 files changed

+16
-24
lines changed

Adafruit_SSD1325.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ All text above, and the splash screen below must be included in any redistributi
3131
#include "Adafruit_SSD1325.h"
3232
#include "glcdfont.c"
3333

34-
<<<<<<< HEAD
3534
#ifdef SPI_HAS_TRANSACTION
3635
SPISettings oledspi = SPISettings(4000000, MSBFIRST, SPI_MODE0);
3736
#else
@@ -41,8 +40,6 @@ SPISettings oledspi = SPISettings(4000000, MSBFIRST, SPI_MODE0);
4140
// a 5x7 font table
4241
extern const uint8_t PROGMEM font[];
4342

44-
=======
45-
>>>>>>> a7ceffe0dd471aad7e5eeeaeb0fd0377d22ec684
4643
// the memory buffer for the LCD
4744

4845
static uint8_t buffer[SSD1325_LCDHEIGHT * SSD1325_LCDWIDTH / 8] = {
@@ -114,11 +111,7 @@ static uint8_t buffer[SSD1325_LCDHEIGHT * SSD1325_LCDWIDTH / 8] = {
114111

115112
// the most basic function, set a single pixel
116113
void Adafruit_SSD1325::drawPixel(int16_t x, int16_t y, uint16_t color) {
117-
<<<<<<< HEAD
118114
if ((x >= width()) || (y >= height()) || (x < 0) || (y < 0))
119-
=======
120-
if ((x < 0) || (x >= width()) || (y < 0) || (y >= height()))
121-
>>>>>>> a7ceffe0dd471aad7e5eeeaeb0fd0377d22ec684
122115
return;
123116

124117
// check rotation, move pixel around if necessary

Adafruit_SSD1325.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,11 @@ All text above, and the splash screen must be included in any redistribution
9595

9696
class Adafruit_SSD1325 : public Adafruit_GFX {
9797
public:
98-
<<<<<<< HEAD
9998
Adafruit_SSD1325(int8_t SID, int8_t SCLK, int8_t DC, int8_t RST, int8_t CS) : Adafruit_GFX(128,64), sid(SID), sclk(SCLK), dc(DC), rst(RST), cs(CS) {}
10099

101100
Adafruit_SSD1325(int8_t SID, int8_t SCLK, int8_t DC, int8_t RST) : Adafruit_GFX(128,64), sid(SID), sclk(SCLK), dc(DC), rst(RST), cs(-1) {}
102101
Adafruit_SSD1325(int8_t DC, int8_t RST, int8_t CS) : Adafruit_GFX(128,64), sid(-1), sclk(-1), dc(DC), rst(RST), cs(CS) {}
103102

104-
=======
105-
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) {}
106-
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) {}
107-
>>>>>>> a7ceffe0dd471aad7e5eeeaeb0fd0377d22ec684
108-
109103
void begin(void);
110104
void command(uint8_t c);
111105
void data(uint8_t c);

examples/rotation/rotationtest.ino renamed to examples/rotationtest/rotationtest.ino

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,25 @@ BSD license, check license.txt for more information
1616
All text above, and the splash screen below must be included in any redistribution
1717
*********************************************************************/
1818

19-
20-
// You can use any (4 or) 5 pins
21-
#define OLED_DC 11
22-
#define OLED_CS 12
23-
#define OLED_CLK 10
24-
#define OLED_MOSI 9
25-
#define OLED_RESET 13
26-
19+
#include <SPI.h>
2720
#include <Adafruit_GFX.h>
2821
#include <Adafruit_SSD1325.h>
29-
#include <SPI.h>
3022

23+
// If using software SPI, define CLK and MOSI
24+
#define OLED_CLK 13
25+
#define OLED_MOSI 11
26+
27+
// These are neede for both hardware & softare SPI
28+
#define OLED_CS 10
29+
#define OLED_RESET 9
30+
#define OLED_DC 8
31+
32+
// this is software SPI, slower but any pins
3133
Adafruit_SSD1325 display(OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);
3234

35+
// this is for hardware SPI, fast! but fixed oubs
36+
//Adafruit_SSD1325 display(OLED_DC, OLED_RESET, OLED_CS);
37+
3338

3439
void setup(void) {
3540
Serial.begin(9600);

examples/ssd1325test/ssd1325test.ino

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

2727
// These are neede for both hardware & softare SPI
2828
#define OLED_CS 10
29-
#define OLED_DC 9
30-
#define OLED_RESET 8
29+
#define OLED_RESET 9
30+
#define OLED_DC 8
3131

3232
// this is software SPI, slower but any pins
3333
Adafruit_SSD1325 display(OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);

0 commit comments

Comments
 (0)