Skip to content

Commit fbb4d5f

Browse files
remove wire.begin from library
1 parent 569ad23 commit fbb4d5f

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

examples/MicroOLED_Demo_I2C/MicroOLED_Demo_I2C.ino

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ MicroOLED oled(PIN_RESET, DC_JUMPER); // I2C declaration
3939
void setup()
4040
{
4141
delay(100);
42+
Wire.begin();
4243
oled.begin(); // Initialize the OLED
4344
oled.clear(ALL); // Clear the display's internal memory
4445
oled.display(); // Display what's in the buffer (splashscreen)

examples/MicroOLED_Rick_and_Morty_I2C/MicroOLED_Rick_and_Morty_I2C.ino

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ MicroOLED oled(PIN_RESET, DC_JUMPER); // I2C declaration
4040
void setup()
4141
{
4242
delay(100);
43+
Wire.begin();
4344
oled.begin(); // Initialize the OLED
4445
oled.clear(ALL); // Clear the display's internal memory
4546
oled.display(); // Display what's in the buffer (splashscreen)

library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "SparkFun Micro OLED Breakout",
3-
"version": "1.2.5",
3+
"version": "1.2.6",
44
"keywords": "display oled",
55
"description": "Library for the SparkFun Micro OLED Breakout",
66
"repository":

src/hardware.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ void MicroOLED::spiTransfer(byte data)
8383
**/
8484
void MicroOLED::i2cSetup()
8585
{
86-
// Initialize Wire library (I2C)
87-
Wire.begin();
86+
8887
}
8988

9089
/** \brief Write a byte over I2C

0 commit comments

Comments
 (0)