Skip to content

Commit 8b5645a

Browse files
committed
Fix issue 19 and lib ver roll.
1 parent 6ccbba3 commit 8b5645a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SparkFun Micro OLED Breakout
2-
version=1.2.0
2+
version=1.2.1
33
author=SparkFun Electronics <techsupport@sparkfun.com>
44
maintainer=SparkFun Electronics <sparkfun.com>
55
sentence=Library for the <a href="https://www.sparkfun.com/products/13003">SparkFun Micro OLED Breakout</a>.

src/SFE_MicroOLED.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,14 @@ void MicroOLED::begin()
205205
setDrawMode(NORM);
206206
setCursor(0,0);
207207

208-
pinMode(dcPin, OUTPUT);
209208
pinMode(rstPin, OUTPUT);
210209

211210
// Set up the selected interface:
212211
if (interface == MODE_SPI)
212+
{
213+
pinMode(dcPin, OUTPUT);
213214
spiSetup();
215+
}
214216
else if (interface == MODE_I2C)
215217
i2cSetup();
216218
else if (interface == MODE_PARALLEL)

0 commit comments

Comments
 (0)