Skip to content

Commit 09a27a4

Browse files
Update Comments
Fix Micro OLED copy paste errors in comments
1 parent ecf70ba commit 09a27a4

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

examples/ex2_qwiic_oled_display.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#-----------------------------------------------------------------------------
33
# ex2_qwiic_oled_display.py
44
#
5-
# Simple Example for the Qwiic MicroOLED Device
5+
# Simple Example for the Qwiic OLED Display
66
#------------------------------------------------------------------------
77
#
88
# Written by SparkFun Electronics, May 2021
@@ -58,7 +58,7 @@ def runExample():
5858
myOLED = qwiic_oled_base.QwiicOledBase(0x3C, 128, 32)
5959

6060
if not myOLED.connected:
61-
print("The Qwiic Micro OLED device isn't connected to the system. Please check your connection", \
61+
print("The Qwiic OLED Display isn't connected to the system. Please check your connection", \
6262
file=sys.stderr)
6363
return
6464

examples/ex3_qwiic_micro_oled_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#-----------------------------------------------------------------------------
33
# ex3_qwiic_micro_oled_demo.py
44
#
5-
# Simple Example for the Qwiic MicroOLED Device
5+
# Simple Example for the Qwiic Micro OLED Device
66
#------------------------------------------------------------------------
77
#
88
# Written by SparkFun Electronics, May 2021

examples/ex4_large_oled_demo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#-----------------------------------------------------------------------------
33
# ex4_large_oled_demo.py
44
#
5-
# Simple Example for the Qwiic MicroOLED Device
5+
# Simple Example for a 128 x 64 pixel OLED Display
66
#------------------------------------------------------------------------
77
#
88
# Written by SparkFun Electronics, May 2021
@@ -334,11 +334,11 @@ def runExample():
334334
# all of the pins and configure the OLED.
335335

336336

337-
print("\nSparkFun Micro OLED Everything Example\n")
337+
print("\n128 x 64 OLED Display - Everything Example\n")
338338
myOLED = qwiic_oled_base.QwiicOledBase(None, 128, 64)
339339

340340
if not myOLED.connected:
341-
print("The Qwiic Micro OLED device isn't connected to the system. Please check your connection", \
341+
print("An OLED device isn't connected to the system. Please check your connection", \
342342
file=sys.stderr)
343343
return
344344

qwiic_oled_base/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# SOFTWARE.
3434
#==================================================================================
3535
#-----------------------------------------------------------------------------
36-
# this package encapsulates the resources used for the Micro OLED board
36+
# this package encapsulates the resources used for the SSD1306 OLED display driver
3737
#
3838
#-----------------------------------------------------------------------------
3939

qwiic_oled_base/oled_fonts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def _initFontSystem():
177177
try:
178178
tmpFiles = os.listdir(fDir)
179179
except:
180-
print("Micro OLED fonts do not exists - check your installation")
180+
print("OLED fonts do not exists - check your installation")
181181
return
182182

183183

@@ -192,7 +192,7 @@ def _initFontSystem():
192192
# get our font names
193193

194194
if len(fontFiles) == 0:
195-
print("Micro OLED - no fonts found")
195+
print("OLED - no fonts found")
196196
return
197197

198198

qwiic_oled_base/qwiic_oled_base.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class QwiicOledBase(object):
134134
If not provided, the default address is used.
135135
:param i2c_driver: An existing i2c driver object. If not provided
136136
a driver object is created.
137-
:return: The Micro OLED device object.
137+
:return: The SSD1306 OLED device object.
138138
:rtype: Object
139139
"""
140140

@@ -207,7 +207,7 @@ def __init__(self, address=None, pixel_width = _LCDWIDTH, pixel_height = _LCDHEI
207207
#--------------------------------------------------------------------------
208208
def is_connected(self):
209209
"""
210-
Determine if a Micro OLED device is conntected to the system..
210+
Determine if a SSD1306 OLED device is conntected to the system..
211211
212212
:return: True if the device is connected, otherwise False.
213213
:rtype: bool
@@ -220,7 +220,7 @@ def is_connected(self):
220220
#--------------------------------------------------------------------------
221221
def begin(self):
222222
"""
223-
Initialize the operation of the Micro OLED module
223+
Initialize the operation of the SSD1306 display driver for the OLED module
224224
225225
:return: Returns true of the initializtion was successful, otherwise False.
226226
:rtype: bool
@@ -455,7 +455,7 @@ def print(self, text):
455455

456456

457457
#--------------------------------------------------------------------------
458-
# MicroOLED's cursor position to x,y.
458+
# OLED's cursor position to x,y.
459459

460460
def set_cursor(self, x, y):
461461
"""
@@ -821,11 +821,11 @@ def get_font_total_char(self):
821821
return self._font.total_char
822822

823823

824-
# Return the total number of fonts loaded into the MicroOLED's flash memory.
824+
# Return the total number of fonts loaded into the OLED's flash memory.
825825

826826
def get_total_fonts(self):
827827
"""
828-
Return the total number of fonts loaded into the MicroOLED's flash memory.
828+
Return the total number of fonts loaded into the OLED's flash memory.
829829
830830
:return: Total number of fonts available
831831
:rvalue: integer

0 commit comments

Comments
 (0)