Skip to content

Commit 8b0e3cb

Browse files
authored
Merge pull request #16 from sparkfun/example_update_for_revised_OLED
Updates SKU for the "Narrow" OLED
2 parents faceab6 + e9c194c commit 8b0e3cb

File tree

9 files changed

+47
-47
lines changed

9 files changed

+47
-47
lines changed

examples/Example-01_Hello/Example-01_Hello.ino

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
Micro OLED https://www.sparkfun.com/products/14532
99
Transparent OLED https://www.sparkfun.com/products/15173
10-
"Narrow" OLED https://www.sparkfun.com/products/17153
10+
"Narrow" OLED https://www.sparkfun.com/products/24606
1111
Qwiic OLED 1.3in https://www.sparkfun.com/products/23453
1212
1313
Written by Kirk Benell @ SparkFun Electronics, March 2022
@@ -23,13 +23,13 @@
2323

2424
#include <SparkFun_Qwiic_OLED.h> //http://librarymanager/All#SparkFun_Qwiic_OLED
2525

26-
// The Library supports three different types of SparkFun boards. The demo uses the following
26+
// The Library supports four different types of SparkFun boards. The demo uses the following
2727
// defines to determine which device is being used. Uncomment the device being used for this demo.
2828

2929
QwiicMicroOLED myOLED;
30-
// QwiicTransparentOLED myOLED;
31-
// QwiicNarrowOLED myOLED;
32-
// Qwiic1in3OLED myOLED;
30+
//QwiicTransparentOLED myOLED;
31+
//QwiicNarrowOLED myOLED;
32+
//Qwiic1in3OLED myOLED;
3333

3434

3535
void setup()
@@ -76,4 +76,4 @@ void setup()
7676
void loop()
7777
{
7878
delay(1000); // Do nothing
79-
}
79+
}

examples/Example-02_Shapes/Example-02_Shapes.ino

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
Micro OLED https://www.sparkfun.com/products/14532
1414
Transparent OLED https://www.sparkfun.com/products/15173
15-
"Narrow" OLED https://www.sparkfun.com/products/17153
15+
"Narrow" OLED https://www.sparkfun.com/products/24606
1616
Qwiic OLED 1.3in https://www.sparkfun.com/products/23453
1717
1818
Written by Kirk Benell @ SparkFun Electronics, March 2022
@@ -28,13 +28,13 @@
2828

2929
#include <SparkFun_Qwiic_OLED.h> //http://librarymanager/All#SparkFun_Qwiic_OLED
3030

31-
// The Library supports three different types of SparkFun boards. The demo uses the following
31+
// The Library supports four different types of SparkFun boards. The demo uses the following
3232
// defines to determine which device is being used. Uncomment the device being used for this demo.
3333

3434
QwiicMicroOLED myOLED;
35-
// QwiicTransparentOLED myOLED;
36-
// QwiicNarrowOLED myOLED;
37-
// Qwiic1in3OLED myOLED;
35+
//QwiicTransparentOLED myOLED;
36+
//QwiicNarrowOLED myOLED;
37+
//Qwiic1in3OLED myOLED;
3838

3939
// Global variables - used to stash our screen size
4040

@@ -259,4 +259,4 @@ void circleTest(void)
259259
myOLED.circle(4, height / 2, height / 3);
260260

261261
myOLED.circleFill(width - width / 2, height / 2, height / 4);
262-
}
262+
}

examples/Example-03_Bitmap/Example-03_Bitmap.ino

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
Micro OLED https://www.sparkfun.com/products/14532
1414
Transparent OLED https://www.sparkfun.com/products/15173
15-
"Narrow" OLED https://www.sparkfun.com/products/17153
15+
"Narrow" OLED https://www.sparkfun.com/products/24606
1616
Qwiic OLED 1.3in https://www.sparkfun.com/products/23453
1717
1818
Written by Kirk Benell @ SparkFun Electronics, March 2022
@@ -28,13 +28,13 @@
2828

2929
#include <SparkFun_Qwiic_OLED.h> //http://librarymanager/All#SparkFun_Qwiic_OLED
3030

31-
// The Library supports three different types of SparkFun boards. The demo uses the following
31+
// The Library supports four different types of SparkFun boards. The demo uses the following
3232
// defines to determine which device is being used. Uncomment the device being used for this demo.
3333

3434
QwiicMicroOLED myOLED;
35-
// QwiicTransparentOLED myOLED;
36-
// QwiicNarrowOLED myOLED;
37-
// Qwiic1in3OLED myOLED;
35+
//QwiicTransparentOLED myOLED;
36+
//QwiicNarrowOLED myOLED;
37+
//Qwiic1in3OLED myOLED;
3838

3939
// Let's draw a truck - use our built in bitmap
4040
#include "res/qw_bmp_truck.h"
@@ -134,4 +134,4 @@ void showSplash()
134134
myOLED.bitmap(x0, y0, QW_BMP_SPARKFUN);
135135
myOLED.display();
136136
delay(2000);
137-
}
137+
}

examples/Example-04_Text/Example-04_Text.ino

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
Micro OLED https://www.sparkfun.com/products/14532
1414
Transparent OLED https://www.sparkfun.com/products/15173
15-
"Narrow" OLED https://www.sparkfun.com/products/17153
15+
"Narrow" OLED https://www.sparkfun.com/products/24606
1616
Qwiic OLED 1.3in https://www.sparkfun.com/products/23453
1717
1818
Written by Kirk Benell @ SparkFun Electronics, March 2022
@@ -28,13 +28,13 @@
2828

2929
#include <SparkFun_Qwiic_OLED.h> //http://librarymanager/All#SparkFun_Qwiic_OLED
3030

31-
// The Library supports three different types of SparkFun boards. The demo uses the following
31+
// The Library supports four different types of SparkFun boards. The demo uses the following
3232
// defines to determine which device is being used. Uncomment the device being used for this demo.
3333

3434
QwiicMicroOLED myOLED;
35-
// QwiicTransparentOLED myOLED;
36-
// QwiicNarrowOLED myOLED;
37-
// Qwiic1in3OLED myOLED;
35+
//QwiicTransparentOLED myOLED;
36+
//QwiicNarrowOLED myOLED;
37+
//Qwiic1in3OLED myOLED;
3838

3939
// Fonts
4040
#include <res/qw_fnt_5x7.h>

examples/Example-05_ScrollFlip/Example-05_ScrollFlip.ino

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
1515
Micro OLED https://www.sparkfun.com/products/14532
1616
Transparent OLED https://www.sparkfun.com/products/15173
17-
"Narrow" OLED https://www.sparkfun.com/products/17153
17+
"Narrow" OLED https://www.sparkfun.com/products/24606
1818
Qwiic OLED 1.3in https://www.sparkfun.com/products/23453
1919
2020
Written by Kirk Benell @ SparkFun Electronics, March 2022
@@ -30,13 +30,13 @@
3030

3131
#include <SparkFun_Qwiic_OLED.h> //http://librarymanager/All#SparkFun_Qwiic_OLED
3232

33-
// The Library supports three different types of SparkFun boards. The demo uses the following
33+
// The Library supports four different types of SparkFun boards. The demo uses the following
3434
// defines to determine which device is being used. Uncomment the device being used for this demo.
3535

3636
QwiicMicroOLED myOLED;
37-
// QwiicTransparentOLED myOLED;
38-
// QwiicNarrowOLED myOLED;
39-
// Qwiic1in3OLED myOLED;
37+
//QwiicTransparentOLED myOLED;
38+
//QwiicNarrowOLED myOLED;
39+
//Qwiic1in3OLED myOLED;
4040

4141
int yoffset;
4242

examples/Example-06_Clock/Example-06_Clock.ino

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
Micro OLED https://www.sparkfun.com/products/14532
1414
Transparent OLED https://www.sparkfun.com/products/15173
15-
"Narrow" OLED https://www.sparkfun.com/products/17153
15+
"Narrow" OLED https://www.sparkfun.com/products/24606
1616
Qwiic OLED 1.3in https://www.sparkfun.com/products/23453
1717
1818
Written by
@@ -30,13 +30,13 @@
3030

3131
#include <SparkFun_Qwiic_OLED.h> //http://librarymanager/All#SparkFun_Qwiic_OLED
3232

33-
// The Library supports three different types of SparkFun boards. The demo uses the following
33+
// The Library supports four different types of SparkFun boards. The demo uses the following
3434
// defines to determine which device is being used. Uncomment the device being used for this demo.
3535

3636
QwiicMicroOLED myOLED;
37-
// QwiicTransparentOLED myOLED;
38-
// QwiicNarrowOLED myOLED;
39-
// Qwiic1in3OLED myOLED;
37+
//QwiicTransparentOLED myOLED;
38+
//QwiicNarrowOLED myOLED;
39+
//Qwiic1in3OLED myOLED;
4040

4141
// Use these variables to set the initial time
4242
int hours = 11;
@@ -215,4 +215,4 @@ void drawFace()
215215
myOLED.print(9);
216216
myOLED.setCursor(POS_3_X, POS_3_Y);
217217
myOLED.print(3);
218-
}
218+
}

examples/Example-07_Cube/Example-07_Cube.ino

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
Micro OLED https://www.sparkfun.com/products/14532
1414
Transparent OLED https://www.sparkfun.com/products/15173
15-
"Narrow" OLED https://www.sparkfun.com/products/17153
15+
"Narrow" OLED https://www.sparkfun.com/products/24606
1616
Qwiic OLED 1.3in https://www.sparkfun.com/products/23453
1717
1818
Written by
@@ -29,13 +29,13 @@
2929
*/
3030
#include <SparkFun_Qwiic_OLED.h> //http://librarymanager/All#SparkFun_Qwiic_OLED
3131

32-
// The Library supports three different types of SparkFun boards. The demo uses the following
32+
// The Library supports four different types of SparkFun boards. The demo uses the following
3333
// defines to determine which device is being used. Uncomment the device being used for this demo.
3434

3535
QwiicMicroOLED myOLED;
36-
// QwiicTransparentOLED myOLED;
37-
// QwiicNarrowOLED myOLED;
38-
// Qwiic1in3OLED myOLED;
36+
//QwiicTransparentOLED myOLED;
37+
//QwiicNarrowOLED myOLED;
38+
//Qwiic1in3OLED myOLED;
3939

4040
int width;
4141
int height;
@@ -154,4 +154,4 @@ void drawCube()
154154
numberOfDraws = 0;
155155
drawTotalTime = 0;
156156
}
157-
}
157+
}

examples/Example-08_Multi/Example-08_Multi.ino

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
Micro OLED https://www.sparkfun.com/products/14532
1414
Transparent OLED https://www.sparkfun.com/products/15173
15-
"Narrow" OLED https://www.sparkfun.com/products/17153
15+
"Narrow" OLED https://www.sparkfun.com/products/24606
1616
Qwiic OLED 1.3in https://www.sparkfun.com/products/23453
1717
1818
Updated from example writtin by Paul Clark @ SparkFun Electronics
@@ -29,13 +29,13 @@
2929

3030
#include <SparkFun_Qwiic_OLED.h> //http://librarymanager/All#SparkFun_Qwiic_OLED
3131

32-
// The Library supports three different types of SparkFun boards. The demo uses the following
32+
// The Library supports four different types of SparkFun boards. The demo uses the following
3333
// defines to determine which device is being used. Uncomment the device being used for this demo.
3434

3535
QwiicMicroOLED myOLED;
36-
// QwiicTransparentOLED myOLED;
37-
// QwiicNarrowOLED myOLED;
38-
// Qwiic1in3OLED myOLED;
36+
//QwiicTransparentOLED myOLED;
37+
//QwiicNarrowOLED myOLED;
38+
//Qwiic1in3OLED myOLED;
3939

4040
int width;
4141
int height;
@@ -240,4 +240,4 @@ void shapeExample()
240240
}
241241
delay(1000);
242242
myOLED.setDrawMode(grROPCopy);
243-
}
243+
}

examples/Example-09_CustomOLED/Example-09_CustomOLED.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
Micro OLED https://www.sparkfun.com/products/14532
99
Transparent OLED https://www.sparkfun.com/products/15173
10-
"Narrow" OLED https://www.sparkfun.com/products/17153
10+
"Narrow" OLED https://www.sparkfun.com/products/24606
1111
Qwiic OLED 1.3in https://www.sparkfun.com/products/23453
1212
1313
Written by Kirk Benell @ SparkFun Electronics, March 2022

0 commit comments

Comments
 (0)