Skip to content

Commit 0bb18cc

Browse files
committed
Fix example indices
Several examples had comments and print statements with the wrong example index
1 parent 77ac853 commit 0bb18cc

7 files changed

+28
-28
lines changed

examples/qwiic_alphanumeric_ex01_print_string.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# !/usr/bin/env python
22
# ----------------------------------------------------------------------
3-
# qwiic_alphanumeric_ex4_print_string.py
3+
# qwiic_alphanumeric_ex1_print_string.py
44
#
55
# This example shows how to use the print() function to illuminate strings
66
# on the alphanumeric display.
@@ -38,7 +38,7 @@
3838
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
3939
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4040
#=======================================================================
41-
# Example 4
41+
# Example 1
4242

4343
from __future__ import print_function
4444
import qwiic_alphanumeric
@@ -47,7 +47,7 @@
4747

4848
def run_example():
4949

50-
print("\nSparkFun Qwiic Alphanumeric - Example 4: Print String")
50+
print("\nSparkFun Qwiic Alphanumeric - Example 1: Print String")
5151
my_display = qwiic_alphanumeric.QwiicAlphanumeric()
5252

5353
if my_display.begin() == False:
@@ -63,5 +63,5 @@ def run_example():
6363
try:
6464
run_example()
6565
except (KeyboardInterrupt, SystemExit) as exErr:
66-
print("\nEnding Example 4")
66+
print("\nEnding Example 1")
6767
sys.exit(0)

examples/qwiic_alphanumeric_ex04_set_brightness.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# !/usr/bin/env python
22
# ----------------------------------------------------------------------
3-
# qwiic_alphanumeric_ex5_set_brightness.py
3+
# qwiic_alphanumeric_ex4_set_brightness.py
44
#
55
# This example sets the brightness of the Qwiic Alphanumeric display.
66
# ----------------------------------------------------------------------
@@ -37,7 +37,7 @@
3737
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
3838
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3939
#=======================================================================
40-
# Example 5
40+
# Example 4
4141

4242
from __future__ import print_function
4343
import qwiic_alphanumeric
@@ -46,7 +46,7 @@
4646

4747
def run_example():
4848

49-
print("\nSparkFun Qwiic Alphanumeric - Example 5: Set Brightness")
49+
print("\nSparkFun Qwiic Alphanumeric - Example 4: Set Brightness")
5050
my_display = qwiic_alphanumeric.QwiicAlphanumeric()
5151

5252
if my_display.begin() == False:
@@ -72,5 +72,5 @@ def run_example():
7272
try:
7373
run_example()
7474
except (KeyboardInterrupt, SystemExit) as exErr:
75-
print("\nEnding Example 5")
75+
print("\nEnding Example 4")
7676
sys.exit(0)

examples/qwiic_alphanumeric_ex05_set_blink_rate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# !/usr/bin/env python
22
# ----------------------------------------------------------------------
3-
# qwiic_alphanumeric_ex6_set_blink_rate.py
3+
# qwiic_alphanumeric_ex5_set_blink_rate.py
44
#
55
# This example sets the blink rate of the display.
66
# ----------------------------------------------------------------------
@@ -37,7 +37,7 @@
3737
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
3838
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3939
#=======================================================================
40-
# Example 6
40+
# Example 5
4141

4242
from __future__ import print_function
4343
import qwiic_alphanumeric
@@ -46,7 +46,7 @@
4646

4747
def run_example():
4848

49-
print("\nSparkFun Qwiic Alphanumeric - Example 6: Set Blink Rate")
49+
print("\nSparkFun Qwiic Alphanumeric - Example 5: Set Blink Rate")
5050
my_display = qwiic_alphanumeric.QwiicAlphanumeric()
5151

5252
if my_display.begin() == False:
@@ -66,5 +66,5 @@ def run_example():
6666
try:
6767
run_example()
6868
except (KeyboardInterrupt, SystemExit) as exErr:
69-
print("\nEnding Example 6")
69+
print("\nEnding Example 5")
7070
sys.exit(0)

examples/qwiic_alphanumeric_ex06_colon_and_decimal.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# !/usr/bin/env python
22
# ----------------------------------------------------------------------
3-
# qwiic_alphanumeric_ex7_colon_and_decimal .py
3+
# qwiic_alphanumeric_ex6_colon_and_decimal .py
44
#
55
# This example tests the library's response to printing colons or decimal points.
66
# ----------------------------------------------------------------------
@@ -37,7 +37,7 @@
3737
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
3838
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3939
#=======================================================================
40-
# Example 7
40+
# Example 6
4141

4242
from __future__ import print_function
4343
import qwiic_alphanumeric
@@ -46,7 +46,7 @@
4646

4747
def run_example():
4848

49-
print("\nSparkFun Qwiic Alphanumeric - Example 7: Colon and Decimal")
49+
print("\nSparkFun Qwiic Alphanumeric - Example 6: Colon and Decimal")
5050
my_display = qwiic_alphanumeric.QwiicAlphanumeric()
5151

5252
if my_display.begin() == False:
@@ -74,5 +74,5 @@ def run_example():
7474
try:
7575
run_example()
7676
except (KeyboardInterrupt, SystemExit) as exErr:
77-
print("\nEnding Example 7")
77+
print("\nEnding Example 6")
7878
sys.exit(0)

examples/qwiic_alphanumeric_ex07_unknown_char.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# !/usr/bin/env python
22
# ----------------------------------------------------------------------
3-
# qwiic_alphanumeric_ex8_unknown_char.py
3+
# qwiic_alphanumeric_ex7_unknown_char.py
44
#
55
# This example demonstrates what the library does when the user tries to
66
# print an unknown character.
@@ -38,7 +38,7 @@
3838
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
3939
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4040
#=======================================================================
41-
# Example 8
41+
# Example 7
4242

4343
from __future__ import print_function
4444
import qwiic_alphanumeric
@@ -47,7 +47,7 @@
4747

4848
def run_example():
4949

50-
print("\nSparkFun Qwiic Alphanumeric - Example 8: Unkown Char")
50+
print("\nSparkFun Qwiic Alphanumeric - Example 7: Unkown Char")
5151
my_display = qwiic_alphanumeric.QwiicAlphanumeric()
5252

5353
if my_display.begin() == False:
@@ -65,5 +65,5 @@ def run_example():
6565
try:
6666
run_example()
6767
except (KeyboardInterrupt, SystemExit) as exErr:
68-
print("\nEnding Example 8")
68+
print("\nEnding Example 7")
6969
sys.exit(0)

examples/qwiic_alphanumeric_ex08_multi_display.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# !/usr/bin/env python
22
# ----------------------------------------------------------------------
3-
# qwiic_alphanumeric_ex9_multi_display.py
3+
# qwiic_alphanumeric_ex8_multi_display.py
44
#
55
# This example demonstrates how to connect multiple displays to the bus
66
# to print longer strings.
@@ -38,7 +38,7 @@
3838
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
3939
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4040
#=======================================================================
41-
# Example 9
41+
# Example 8
4242

4343
from __future__ import print_function
4444
import qwiic_alphanumeric
@@ -47,7 +47,7 @@
4747

4848
def run_example():
4949

50-
print("\nSparkFun Qwiic Alphanumeric - Example 9: Multi Display")
50+
print("\nSparkFun Qwiic Alphanumeric - Example 8: Multi Display")
5151
my_display = qwiic_alphanumeric.QwiicAlphanumeric()
5252

5353
if my_display.begin(0x70, 0x71) == False:
@@ -63,5 +63,5 @@ def run_example():
6363
try:
6464
run_example()
6565
except (KeyboardInterrupt, SystemExit) as exErr:
66-
print("\nEnding Example 9")
66+
print("\nEnding Example 8")
6767
sys.exit(0)

examples/qwiic_alphanumeric_ex09_scrolling_string.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# !/usr/bin/env python
22
# ----------------------------------------------------------------------
3-
# qwiic_alphanumeric_ex10_scrolling_string.py
3+
# qwiic_alphanumeric_ex9_scrolling_string.py
44
#
55
# This example tests the scrolling functionality of the display.
66
# ----------------------------------------------------------------------
@@ -37,7 +37,7 @@
3737
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
3838
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3939
#=======================================================================
40-
# Example 10
40+
# Example 9
4141

4242
from __future__ import print_function
4343
import qwiic_alphanumeric
@@ -46,7 +46,7 @@
4646

4747
def run_example():
4848

49-
print("\nSparkFun Qwiic Alphanumeric - Example 10: Scrolling String")
49+
print("\nSparkFun Qwiic Alphanumeric - Example 9: Scrolling String")
5050
my_display = qwiic_alphanumeric.QwiicAlphanumeric()
5151

5252
if my_display.begin(0x70, 0x71) == False:
@@ -69,5 +69,5 @@ def run_example():
6969
try:
7070
run_example()
7171
except (KeyboardInterrupt, SystemExit) as exErr:
72-
print("\nEnding Example 10")
72+
print("\nEnding Example 9")
7373
sys.exit(0)

0 commit comments

Comments
 (0)