File tree 9 files changed +47
-47
lines changed
9 files changed +47
-47
lines changed Original file line number Diff line number Diff line change 7
7
8
8
Micro OLED https://www.sparkfun.com/products/14532
9
9
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
11
11
Qwiic OLED 1.3in https://www.sparkfun.com/products/23453
12
12
13
13
Written by Kirk Benell @ SparkFun Electronics, March 2022
23
23
24
24
#include < SparkFun_Qwiic_OLED.h> // http://librarymanager/All#SparkFun_Qwiic_OLED
25
25
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
27
27
// defines to determine which device is being used. Uncomment the device being used for this demo.
28
28
29
29
QwiicMicroOLED myOLED;
30
- // QwiicTransparentOLED myOLED;
31
- // QwiicNarrowOLED myOLED;
32
- // Qwiic1in3OLED myOLED;
30
+ // QwiicTransparentOLED myOLED;
31
+ // QwiicNarrowOLED myOLED;
32
+ // Qwiic1in3OLED myOLED;
33
33
34
34
35
35
void setup ()
@@ -76,4 +76,4 @@ void setup()
76
76
void loop ()
77
77
{
78
78
delay (1000 ); // Do nothing
79
- }
79
+ }
Original file line number Diff line number Diff line change 12
12
13
13
Micro OLED https://www.sparkfun.com/products/14532
14
14
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
16
16
Qwiic OLED 1.3in https://www.sparkfun.com/products/23453
17
17
18
18
Written by Kirk Benell @ SparkFun Electronics, March 2022
28
28
29
29
#include < SparkFun_Qwiic_OLED.h> // http://librarymanager/All#SparkFun_Qwiic_OLED
30
30
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
32
32
// defines to determine which device is being used. Uncomment the device being used for this demo.
33
33
34
34
QwiicMicroOLED myOLED;
35
- // QwiicTransparentOLED myOLED;
36
- // QwiicNarrowOLED myOLED;
37
- // Qwiic1in3OLED myOLED;
35
+ // QwiicTransparentOLED myOLED;
36
+ // QwiicNarrowOLED myOLED;
37
+ // Qwiic1in3OLED myOLED;
38
38
39
39
// Global variables - used to stash our screen size
40
40
@@ -259,4 +259,4 @@ void circleTest(void)
259
259
myOLED.circle (4 , height / 2 , height / 3 );
260
260
261
261
myOLED.circleFill (width - width / 2 , height / 2 , height / 4 );
262
- }
262
+ }
Original file line number Diff line number Diff line change 12
12
13
13
Micro OLED https://www.sparkfun.com/products/14532
14
14
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
16
16
Qwiic OLED 1.3in https://www.sparkfun.com/products/23453
17
17
18
18
Written by Kirk Benell @ SparkFun Electronics, March 2022
28
28
29
29
#include < SparkFun_Qwiic_OLED.h> // http://librarymanager/All#SparkFun_Qwiic_OLED
30
30
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
32
32
// defines to determine which device is being used. Uncomment the device being used for this demo.
33
33
34
34
QwiicMicroOLED myOLED;
35
- // QwiicTransparentOLED myOLED;
36
- // QwiicNarrowOLED myOLED;
37
- // Qwiic1in3OLED myOLED;
35
+ // QwiicTransparentOLED myOLED;
36
+ // QwiicNarrowOLED myOLED;
37
+ // Qwiic1in3OLED myOLED;
38
38
39
39
// Let's draw a truck - use our built in bitmap
40
40
#include " res/qw_bmp_truck.h"
@@ -134,4 +134,4 @@ void showSplash()
134
134
myOLED.bitmap (x0, y0 , QW_BMP_SPARKFUN);
135
135
myOLED.display ();
136
136
delay (2000 );
137
- }
137
+ }
Original file line number Diff line number Diff line change 12
12
13
13
Micro OLED https://www.sparkfun.com/products/14532
14
14
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
16
16
Qwiic OLED 1.3in https://www.sparkfun.com/products/23453
17
17
18
18
Written by Kirk Benell @ SparkFun Electronics, March 2022
28
28
29
29
#include < SparkFun_Qwiic_OLED.h> // http://librarymanager/All#SparkFun_Qwiic_OLED
30
30
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
32
32
// defines to determine which device is being used. Uncomment the device being used for this demo.
33
33
34
34
QwiicMicroOLED myOLED;
35
- // QwiicTransparentOLED myOLED;
36
- // QwiicNarrowOLED myOLED;
37
- // Qwiic1in3OLED myOLED;
35
+ // QwiicTransparentOLED myOLED;
36
+ // QwiicNarrowOLED myOLED;
37
+ // Qwiic1in3OLED myOLED;
38
38
39
39
// Fonts
40
40
#include < res/qw_fnt_5x7.h>
Original file line number Diff line number Diff line change 14
14
15
15
Micro OLED https://www.sparkfun.com/products/14532
16
16
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
18
18
Qwiic OLED 1.3in https://www.sparkfun.com/products/23453
19
19
20
20
Written by Kirk Benell @ SparkFun Electronics, March 2022
30
30
31
31
#include < SparkFun_Qwiic_OLED.h> // http://librarymanager/All#SparkFun_Qwiic_OLED
32
32
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
34
34
// defines to determine which device is being used. Uncomment the device being used for this demo.
35
35
36
36
QwiicMicroOLED myOLED;
37
- // QwiicTransparentOLED myOLED;
38
- // QwiicNarrowOLED myOLED;
39
- // Qwiic1in3OLED myOLED;
37
+ // QwiicTransparentOLED myOLED;
38
+ // QwiicNarrowOLED myOLED;
39
+ // Qwiic1in3OLED myOLED;
40
40
41
41
int yoffset;
42
42
Original file line number Diff line number Diff line change 12
12
13
13
Micro OLED https://www.sparkfun.com/products/14532
14
14
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
16
16
Qwiic OLED 1.3in https://www.sparkfun.com/products/23453
17
17
18
18
Written by
30
30
31
31
#include < SparkFun_Qwiic_OLED.h> // http://librarymanager/All#SparkFun_Qwiic_OLED
32
32
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
34
34
// defines to determine which device is being used. Uncomment the device being used for this demo.
35
35
36
36
QwiicMicroOLED myOLED;
37
- // QwiicTransparentOLED myOLED;
38
- // QwiicNarrowOLED myOLED;
39
- // Qwiic1in3OLED myOLED;
37
+ // QwiicTransparentOLED myOLED;
38
+ // QwiicNarrowOLED myOLED;
39
+ // Qwiic1in3OLED myOLED;
40
40
41
41
// Use these variables to set the initial time
42
42
int hours = 11 ;
@@ -215,4 +215,4 @@ void drawFace()
215
215
myOLED.print (9 );
216
216
myOLED.setCursor (POS_3_X, POS_3_Y);
217
217
myOLED.print (3 );
218
- }
218
+ }
Original file line number Diff line number Diff line change 12
12
13
13
Micro OLED https://www.sparkfun.com/products/14532
14
14
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
16
16
Qwiic OLED 1.3in https://www.sparkfun.com/products/23453
17
17
18
18
Written by
29
29
*/
30
30
#include < SparkFun_Qwiic_OLED.h> // http://librarymanager/All#SparkFun_Qwiic_OLED
31
31
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
33
33
// defines to determine which device is being used. Uncomment the device being used for this demo.
34
34
35
35
QwiicMicroOLED myOLED;
36
- // QwiicTransparentOLED myOLED;
37
- // QwiicNarrowOLED myOLED;
38
- // Qwiic1in3OLED myOLED;
36
+ // QwiicTransparentOLED myOLED;
37
+ // QwiicNarrowOLED myOLED;
38
+ // Qwiic1in3OLED myOLED;
39
39
40
40
int width;
41
41
int height;
@@ -154,4 +154,4 @@ void drawCube()
154
154
numberOfDraws = 0 ;
155
155
drawTotalTime = 0 ;
156
156
}
157
- }
157
+ }
Original file line number Diff line number Diff line change 12
12
13
13
Micro OLED https://www.sparkfun.com/products/14532
14
14
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
16
16
Qwiic OLED 1.3in https://www.sparkfun.com/products/23453
17
17
18
18
Updated from example writtin by Paul Clark @ SparkFun Electronics
29
29
30
30
#include < SparkFun_Qwiic_OLED.h> // http://librarymanager/All#SparkFun_Qwiic_OLED
31
31
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
33
33
// defines to determine which device is being used. Uncomment the device being used for this demo.
34
34
35
35
QwiicMicroOLED myOLED;
36
- // QwiicTransparentOLED myOLED;
37
- // QwiicNarrowOLED myOLED;
38
- // Qwiic1in3OLED myOLED;
36
+ // QwiicTransparentOLED myOLED;
37
+ // QwiicNarrowOLED myOLED;
38
+ // Qwiic1in3OLED myOLED;
39
39
40
40
int width;
41
41
int height;
@@ -240,4 +240,4 @@ void shapeExample()
240
240
}
241
241
delay (1000 );
242
242
myOLED.setDrawMode (grROPCopy);
243
- }
243
+ }
Original file line number Diff line number Diff line change 7
7
8
8
Micro OLED https://www.sparkfun.com/products/14532
9
9
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
11
11
Qwiic OLED 1.3in https://www.sparkfun.com/products/23453
12
12
13
13
Written by Kirk Benell @ SparkFun Electronics, March 2022
You can’t perform that action at this time.
0 commit comments