Skip to content

Commit 750077f

Browse files
committed
Fixed link errors in example comments
1 parent 5adc612 commit 750077f

19 files changed

+68
-68
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ Introduction
1616
CircuitPython library for the Sparkfun SerLCD displays. This library is ported from
1717
`SparkFun SerLCD Arduino Library <https://github.com/sparkfun/SparkFun_SerLCD_Arduino_Library>`_
1818

19-
SparkFun 16x2 SerLCD - Black on RGB 3.3V (LCD-14072)
19+
`SparkFun 16x2 SerLCD - Black on RGB 3.3V (LCD-14072)<https://www.sparkfun.com/products/14072>`_
2020

2121
.. image:: https://cdn.sparkfun.com/r/140-140/assets/parts/1/1/9/2/5/14072-SparkFun_16x2_SerLCD_-_Black_on_RGB_3.3V-05.jpg
2222
:target: https://www.sparkfun.com/products/14072
2323
:alt: SparkFun 16x2 SerLCD - Black on RGB 3.3V (LCD-14072)
2424

25-
SparkFun 16x2 SerLCD - RGB on Black 3.3V (LCD-14073)
25+
`SparkFun 16x2 SerLCD - RGB on Black 3.3V (LCD-14073)<https://www.sparkfun.com/products/14073>`_
2626

2727
.. image:: https://cdn.sparkfun.com/r/140-140/assets/parts/1/1/9/2/6/14073-SparkFun_16x2_SerLCD_-_RGB_on_Black_3.3V-05.jpg
2828
:target: https://www.sparkfun.com/products/14073
2929
:alt: SparkFun 16x2 SerLCD - RGB on Black 3.3V (LCD-14073)
3030

31-
SparkFun 20x4 SerLCD - Black on RGB 3.3V (LCD-14074)
31+
`SparkFun 20x4 SerLCD - Black on RGB 3.3V (LCD-14074)<https://www.sparkfun.com/products/14074>`_
3232

3333
.. image:: https://cdn.sparkfun.com/r/140-140/assets/parts/1/1/9/2/7/14074-SparkFun_20x4_SerLCD_-_Black_on_RGB_3.3V-05.jpg
3434
:target: https://www.sparkfun.com/products/14074

examples/example10_turn_off_display.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This is example is for the SparkFun Serial LCD displays.
22
# SparkFun sells these at its website: www.sparkfun.com
33
# Do you like this library? Help support SparkFun. Buy a board!
4-
# https://www.sparkfun.com/products/14702
5-
# https://www.sparkfun.com/products/14703
6-
# https://www.sparkfun.com/products/14704
4+
# https://www.sparkfun.com/products/14072
5+
# https://www.sparkfun.com/products/14073
6+
# https://www.sparkfun.com/products/14074
77

88
"""
99
Serial LCD Example 10 - example10_turn_off_display.py

examples/example11_text_direction.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This is example is for the SparkFun Serial LCD displays.
22
# SparkFun sells these at its website: www.sparkfun.com
33
# Do you like this library? Help support SparkFun. Buy a board!
4-
# https://www.sparkfun.com/products/14702
5-
# https://www.sparkfun.com/products/14703
6-
# https://www.sparkfun.com/products/14704
4+
# https://www.sparkfun.com/products/14072
5+
# https://www.sparkfun.com/products/14073
6+
# https://www.sparkfun.com/products/14074
77

88
"""
99
Serial LCD Example 11 - example11_text_direction.py

examples/example12_display_input_text.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This is example is for the SparkFun Serial LCD displays.
22
# SparkFun sells these at its website: www.sparkfun.com
33
# Do you like this library? Help support SparkFun. Buy a board!
4-
# https://www.sparkfun.com/products/14702
5-
# https://www.sparkfun.com/products/14703
6-
# https://www.sparkfun.com/products/14704
4+
# https://www.sparkfun.com/products/14072
5+
# https://www.sparkfun.com/products/14073
6+
# https://www.sparkfun.com/products/14074
77

88
"""
99
Serial LCD Example 12 - example12_display_input_text.py

examples/example13_fast_backlight.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This is example is for the SparkFun Serial LCD displays.
22
# SparkFun sells these at its website: www.sparkfun.com
33
# Do you like this library? Help support SparkFun. Buy a board!
4-
# https://www.sparkfun.com/products/14702
5-
# https://www.sparkfun.com/products/14703
6-
# https://www.sparkfun.com/products/14704
4+
# https://www.sparkfun.com/products/14072
5+
# https://www.sparkfun.com/products/14073
6+
# https://www.sparkfun.com/products/14074
77

88
"""
99
Serial LCD Example 13 - example13_fast_backlight.py

examples/example14_show_firmware_version.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# This is example is for the SparkFun Serial LCD displays.
22
# SparkFun sells these at its website: www.sparkfun.com
33
# Do you like this library? Help support SparkFun. Buy a board!
4-
# https://www.sparkfun.com/products/14702
5-
# https://www.sparkfun.com/products/14703
6-
# https://www.sparkfun.com/products/14704
4+
# https://www.sparkfun.com/products/14072
5+
# https://www.sparkfun.com/products/14073
6+
# https://www.sparkfun.com/products/14074
77

88
"""
99
Serial LCD Example 12 - example12_show_firmware_version.py
10-
Written by Gaston Williams, July 14th, 2019
10+
Written by Gaston Williams, July 16, 2019
1111
Based on Arduino code written by Gaston Williams and
1212
Nathan Seidle @ Sparkfun, August 22, 2018.
1313

examples/example15_system_messages.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This is example is for the SparkFun Serial LCD displays.
22
# SparkFun sells these at its website: www.sparkfun.com
33
# Do you like this library? Help support SparkFun. Buy a board!
4-
# https://www.sparkfun.com/products/14702
5-
# https://www.sparkfun.com/products/14703
6-
# https://www.sparkfun.com/products/14704
4+
# https://www.sparkfun.com/products/14072
5+
# https://www.sparkfun.com/products/14073
6+
# https://www.sparkfun.com/products/14074
77

88
"""
99
Serial LCD Example 15 - example15_message_enable.py

examples/example16_splash_screen.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This is example is for the SparkFun Serial LCD displays.
22
# SparkFun sells these at its website: www.sparkfun.com
33
# Do you like this library? Help support SparkFun. Buy a board!
4-
# https://www.sparkfun.com/products/14702
5-
# https://www.sparkfun.com/products/14703
6-
# https://www.sparkfun.com/products/14704
4+
# https://www.sparkfun.com/products/14072
5+
# https://www.sparkfun.com/products/14073
6+
# https://www.sparkfun.com/products/14074
77

88
"""
99
Serial LCD Example 16 - example16_splash_screen.py

examples/example1_hello_world.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# This is example is for the SparkFun Serial LCD displays.
22
# SparkFun sells these at its website: www.sparkfun.com
33
# Do you like this library? Help support SparkFun. Buy a board!
4-
# https://www.sparkfun.com/products/14702
5-
# https://www.sparkfun.com/products/14703
6-
# https://www.sparkfun.com/products/14704
4+
# https://www.sparkfun.com/products/14072
5+
# https://www.sparkfun.com/products/14073
6+
# https://www.sparkfun.com/products/14074
77

88
"""
99
Serial LCD Example 1 - example1_hello_world.py
10-
Written by Gaston Williams, July 14th, 2019
10+
Written by Gaston Williams, July 16, 2019
1111
Based on Arduino code written by Gaston Williams and
1212
Nathan Seidle @ Sparkfun, August 22, 2018.
1313
@@ -37,13 +37,13 @@
3737
#
3838
#serlcd = Sparkfun_SerLCD_SPI(spi, cs)
3939

40-
# Enable Serial communication
40+
# Enable UART Serial communication
4141
# SerLCD is connected to the RPi via a USB to TTL 3.3v Serial Cable:
4242
# https://www.sparkfun.com/products/12977
4343
# https://www.adafruit.com/product/954
4444

4545
#import serial
46-
#from sparkfun_serlcd import Sparkfun_SerLCD_Serial
46+
#from sparkfun_serlcd import Sparkfun_SerLCD_UART
4747
#usb0 = serial.Serial(
4848
# port='/dev/ttyUSB0',
4949
# baudrate = 9600,
@@ -52,7 +52,7 @@
5252
# bytesize=serial.EIGHTBITS,
5353
# timeout=1)
5454
#
55-
#serlcd = Sparkfun_SerLCD_Serial(usb0)
55+
#serlcd = Sparkfun_SerLCD_UART(usb0)
5656

5757
print('Example 1: Hello World')
5858
print('Press Ctrl-C to end program.')

examples/example2_backlight.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This is example is for the SparkFun Serial LCD displays.
22
# SparkFun sells these at its website: www.sparkfun.com
33
# Do you like this library? Help support SparkFun. Buy a board!
4-
# https://www.sparkfun.com/products/14702
5-
# https://www.sparkfun.com/products/14703
6-
# https://www.sparkfun.com/products/14704
4+
# https://www.sparkfun.com/products/14072
5+
# https://www.sparkfun.com/products/14073
6+
# https://www.sparkfun.com/products/14074
77

88
"""
99
Serial LCD Example 2 - example2_backlight.py

examples/example3_cursor_position.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This is example is for the SparkFun Serial LCD displays.
22
# SparkFun sells these at its website: www.sparkfun.com
33
# Do you like this library? Help support SparkFun. Buy a board!
4-
# https://www.sparkfun.com/products/14702
5-
# https://www.sparkfun.com/products/14703
6-
# https://www.sparkfun.com/products/14704
4+
# https://www.sparkfun.com/products/14072
5+
# https://www.sparkfun.com/products/14073
6+
# https://www.sparkfun.com/products/14074
77

88
"""
99
Serial LCD Example 3 - example3_cursor_position.py

examples/example4_move_cursor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This is example is for the SparkFun Serial LCD displays.
22
# SparkFun sells these at its website: www.sparkfun.com
33
# Do you like this library? Help support SparkFun. Buy a board!
4-
# https://www.sparkfun.com/products/14702
5-
# https://www.sparkfun.com/products/14703
6-
# https://www.sparkfun.com/products/14704
4+
# https://www.sparkfun.com/products/14072
5+
# https://www.sparkfun.com/products/14073
6+
# https://www.sparkfun.com/products/14074
77

88
"""
99
Serial LCD Example 4 - example4_move_cursor.py

examples/example5_enable_cursor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This is example is for the SparkFun Serial LCD displays.
22
# SparkFun sells these at its website: www.sparkfun.com
33
# Do you like this library? Help support SparkFun. Buy a board!
4-
# https://www.sparkfun.com/products/14702
5-
# https://www.sparkfun.com/products/14703
6-
# https://www.sparkfun.com/products/14704
4+
# https://www.sparkfun.com/products/14072
5+
# https://www.sparkfun.com/products/14073
6+
# https://www.sparkfun.com/products/14074
77

88
"""
99
Serial LCD Example 5 - example4_enable_cursor.py

examples/example6_blink_cursor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This is example is for the SparkFun Serial LCD displays.
22
# SparkFun sells these at its website: www.sparkfun.com
33
# Do you like this library? Help support SparkFun. Buy a board!
4-
# https://www.sparkfun.com/products/14702
5-
# https://www.sparkfun.com/products/14703
6-
# https://www.sparkfun.com/products/14704
4+
# https://www.sparkfun.com/products/14072
5+
# https://www.sparkfun.com/products/14073
6+
# https://www.sparkfun.com/products/14074
77

88
"""
99
Serial LCD Example 6 - example6_blink_cursor.py

examples/example7_scroll_display.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This is example is for the SparkFun Serial LCD displays.
22
# SparkFun sells these at its website: www.sparkfun.com
33
# Do you like this library? Help support SparkFun. Buy a board!
4-
# https://www.sparkfun.com/products/14702
5-
# https://www.sparkfun.com/products/14703
6-
# https://www.sparkfun.com/products/14704
4+
# https://www.sparkfun.com/products/14072
5+
# https://www.sparkfun.com/products/14073
6+
# https://www.sparkfun.com/products/14074
77

88
"""
99
Serial LCD Example 7 - example6_scroll_display.py

examples/example8_autoscroll_text.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This is example is for the SparkFun Serial LCD displays.
22
# SparkFun sells these at its website: www.sparkfun.com
33
# Do you like this library? Help support SparkFun. Buy a board!
4-
# https://www.sparkfun.com/products/14702
5-
# https://www.sparkfun.com/products/14703
6-
# https://www.sparkfun.com/products/14704
4+
# https://www.sparkfun.com/products/14072
5+
# https://www.sparkfun.com/products/14073
6+
# https://www.sparkfun.com/products/14074
77

88
"""
99
Serial LCD Example 8 - example6_autoscroll_text.py

examples/example9_custom_characters.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# This is example is for the SparkFun Serial LCD displays.
22
# SparkFun sells these at its website: www.sparkfun.com
33
# Do you like this library? Help support SparkFun. Buy a board!
4-
# https://www.sparkfun.com/products/14702
5-
# https://www.sparkfun.com/products/14703
6-
# https://www.sparkfun.com/products/14704
4+
# https://www.sparkfun.com/products/14072
5+
# https://www.sparkfun.com/products/14073
6+
# https://www.sparkfun.com/products/14074
77

88
"""
99
Serial LCD Example 9 - example9_custom_characters.py
10-
Written by Gaston Williams, July 14th, 2019
10+
Written by Gaston Williams, July 16, 2019
1111
Based on Arduino code written by Gaston Williams and
1212
Nathan Seidle @ Sparkfun, August 22, 2018.
1313

examples/serlcd_simpletest.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This is example is for the SparkFun Serial LCD displays.
22
# SparkFun sells these at its website: www.sparkfun.com
33
# Do you like this library? Help support SparkFun. Buy a board!
4-
# https://www.sparkfun.com/products/14702
5-
# https://www.sparkfun.com/products/14703
6-
# https://www.sparkfun.com/products/14704
4+
# https://www.sparkfun.com/products/14072
5+
# https://www.sparkfun.com/products/14073
6+
# https://www.sparkfun.com/products/14074
77

88
"""
99
Serial LCD Simple Test - serlcd_simpletest.py
@@ -34,12 +34,12 @@
3434
#
3535
#serlcd = Sparkfun_SerLCD_SPI(spi, cs)
3636

37-
# Enable Serial communication
37+
# Enable UART Serial communication
3838
# SerLCD is connected to the RPi via a USB to TTL 3.3v Serial Cable:
3939
# https://www.sparkfun.com/products/12977
4040
# https://www.adafruit.com/product/954
4141
#import serial
42-
#from sparkfun_serlcd import Sparkfun_SerLCD_Serial
42+
#from sparkfun_serlcd import Sparkfun_SerLCD_UART
4343
#
4444
#usb0 = serial.Serial(
4545
# port='/dev/ttyUSB0',
@@ -49,7 +49,7 @@
4949
# bytesize=serial.EIGHTBITS,
5050
# timeout=1)
5151
#
52-
#serlcd = Sparkfun_SerLCD_Serial(usb0)
52+
#serlcd = Sparkfun_SerLCD_UART(usb0)
5353

5454
print('SerLCD Simple Test')
5555

sparkfun_serlcd.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
* This is library is for the SparkFun Serial LCD displays
4545
* SparkFun sells these at its website: www.sparkfun.com
4646
* Do you like this library? Help support SparkFun. Buy a board!
47-
* 16x2 SerLCD Black on RGB https://www.sparkfun.com/products/14702
47+
* 16x2 SerLCD Black on RGB https://www.sparkfun.com/products/14072
4848
* 16x2 SerLCD RGB on Black https://www.sparkfun.com/products/14073
49-
* 20x4 SerLCD Black on RGB https://www.sparkfun.com/products/14704
49+
* 20x4 SerLCD Black on RGB https://www.sparkfun.com/products/14074
5050
5151
**Software and Dependencies:**
5252
@@ -143,7 +143,7 @@ def _map_range(value, in_min, in_max, out_min, out_max):
143143
class Sparkfun_SerLCD(ABC):
144144
"""Abstract base class for Sparkfun AVR-Based Serial LCD display.
145145
Use the appropriate driver communcation subclass Sprarkfun_SerLCD_I2C()
146-
for I2C, Sparkfun_SerLCD_SPI() for SPI or Sparkfun_SerLCD_Serial for Serial.
146+
for I2C, Sparkfun_SerLCD_SPI() for SPI or Sparkfun_SerLCD_UART for UART.
147147
"""
148148
# pylint: disable=too-many-instance-attributes
149149
# pylint: disable=too-many-public-methods
@@ -546,8 +546,8 @@ def _change_i2c_address(self, addr):
546546
# No i2c address change for SPI
547547
pass
548548

549-
# concrete subclass for Serial
550-
class Sparkfun_SerLCD_Serial(Sparkfun_SerLCD):
549+
# concrete subclass for UART
550+
class Sparkfun_SerLCD_UART(Sparkfun_SerLCD):
551551
"""Driver subclass for Sparkfun Serial LCD display over Serial communication"""
552552
def __init__(self, uart):
553553
self._uart = uart

0 commit comments

Comments
 (0)