Skip to content

Commit ae97422

Browse files
committed
Fixes discussed in #26
1 parent 600d74d commit ae97422

File tree

5 files changed

+19
-32
lines changed

5 files changed

+19
-32
lines changed

SSD1306Brzo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#define SSD1306Brzo_h
3030

3131
#include "OLEDDisplay.h"
32-
#include "brzo_i2c.h"
32+
#include <brzo_i2c.h>
3333

3434
#if F_CPU == 160000000L
3535
#define BRZO_I2C_SPEED 1000

examples/SSD1306ClockDemo/SSD1306ClockDemo.ino

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,27 @@
2626

2727
#include <Wire.h>
2828
#include <TimeLib.h>
29-
#include "images.h"
3029

3130
// Include the correct display library
3231
// For a connection via I2C using Wire include
3332
#include "SSD1306.h" // alias for `#include "SSD1306Wire.h"`
3433
// For a connection via I2C using brzo_i2c (must be installed) include
3534
// #include "SSD1306Brzo.h"
3635
// For a connection via SPI include
36+
// #include <SPI.h>
3737
// #include "SSD1306Spi.h"
3838

3939
// Include the UI lib
4040
#include "OLEDDisplayUi.h"
4141

42+
// Include custom images
43+
#include "images.h"
44+
4245
// Use the corresponding display class:
4346

4447
// Initialize the OLED display using SPI
45-
// D5 -> SCL
46-
// D7 -> SDA
48+
// D5 -> CLK
49+
// D7 -> MOSI (DOUT)
4750
// D0 -> RES
4851
// D2 -> DC
4952
// D8 -> CS

examples/SSD1306SimpleDemo/SSD1306SimpleDemo.ino

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,24 @@
2424
*/
2525

2626
#include <Wire.h>
27-
#include "images.h"
2827

2928
// Include the correct display library
3029
// For a connection via I2C using Wire include
3130
#include "SSD1306.h" // alias for `#include "SSD1306Wire.h"`
3231
// For a connection via I2C using brzo_i2c (must be installed) include
3332
// #include "SSD1306Brzo.h"
3433
// For a connection via SPI include
34+
// #include <SPI.h>
3535
// #include "SSD1306Spi.h"
3636

37+
// Include custom images
38+
#include "images.h"
39+
3740
// Use the corresponding display class:
3841

3942
// Initialize the OLED display using SPI
40-
// D5 -> SCL
41-
// D7 -> SDA
43+
// D5 -> CLK
44+
// D7 -> MOSI (DOUT)
4245
// D0 -> RES
4346
// D2 -> DC
4447
// D8 -> CS

examples/SSD1306SimpleDemo/images.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,3 @@ const char WiFi_Logo_bits[] PROGMEM = {
2626
0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC,
2727
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2828
};
29-
30-
const char activeSymbol[] PROGMEM = {
31-
B00000000,
32-
B00000000,
33-
B00011000,
34-
B00100100,
35-
B01000010,
36-
B01000010,
37-
B00100100,
38-
B00011000
39-
};
40-
41-
const char inactiveSymbol[] PROGMEM = {
42-
B00000000,
43-
B00000000,
44-
B00000000,
45-
B00000000,
46-
B00011000,
47-
B00011000,
48-
B00000000,
49-
B00000000
50-
};

examples/SSD1306UiDemo/SSD1306UiDemo.ino

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,28 @@
2525
*/
2626

2727
#include <Wire.h>
28-
#include "images.h"
2928

3029
// Include the correct display library
3130
// For a connection via I2C using Wire include
3231
#include "SSD1306.h" // alias for `#include "SSD1306Wire.h"`
3332
// For a connection via I2C using brzo_i2c (must be installed) include
3433
// #include "SSD1306Brzo.h"
3534
// For a connection via SPI include
35+
// #include <SPI.h>
3636
// #include "SSD1306Spi.h"
3737

3838

3939
// Include the UI lib
4040
#include "OLEDDisplayUi.h"
4141

42+
// Include custom images
43+
#include "images.h"
44+
4245
// Use the corresponding display class:
4346

4447
// Initialize the OLED display using SPI
45-
// D5 -> SCL
46-
// D7 -> SDA
48+
// D5 -> CLK
49+
// D7 -> MOSI (DOUT)
4750
// D0 -> RES
4851
// D2 -> DC
4952
// D8 -> CS

0 commit comments

Comments
 (0)