CircuitPython RGBMatrix: only one space after sentence-ending period

This commit is contained in:
Jeff Epler 2020-04-21 09:18:16 -05:00
parent a9deb63ab7
commit 820933140e
4 changed files with 8 additions and 8 deletions

View file

@ -15,8 +15,8 @@ matrix = rgbmatrix.RGBMatrix(
clock_pin=board.D13, latch_pin=board.D0, output_enable_pin=board.D1)
display = framebufferio.FramebufferDisplay(matrix, auto_refresh=False)
# This bitmap contains the emoji we're going to use. It is assumed
# to contain 20 icons, each 20x24 pixels. This fits nicely on the 64x32
# This bitmap contains the emoji we're going to use. It is assumed
# to contain 20 icons, each 20x24 pixels. This fits nicely on the 64x32
# RGB matrix display.
bitmap_file = open("emoji.bmp", 'rb')
bitmap = displayio.OnDiskBitmap(bitmap_file)
@ -28,9 +28,9 @@ STOPPED, RUNNING, BRAKING = range(3)
def shuffled(seq):
return sorted(seq, key=lambda _: random.random())
# The Wheel class manages the state of one wheel. "pos" is a position in
# The Wheel class manages the state of one wheel. "pos" is a position in
# scaled integer coordinates, with one revolution being 7680 positions
# and 1 pixel being 16 positions. The wheel also has a velocity (in positions
# and 1 pixel being 16 positions. The wheel also has a velocity (in positions
# per tick) and a state (one of the above constants)
class Wheel(displayio.TileGrid):
def __init__(self):

View file

@ -23,7 +23,7 @@ displayio.release_displays()
#
# This function has been somewhat optimized, so that when it indexes the bitmap
# a single number [x + width * y] is used instead of indexing with [x, y].
# This makes the animation run faster with some loss of clarity. More
# This makes the animation run faster with some loss of clarity. More
# optimizations are probably possible.
def apply_life_rule(old, new):

View file

@ -1,5 +1,5 @@
# This example implements a rainbow colored scroller, in which each letter
# has a different color. This is not possible with
# has a different color. This is not possible with
# Adafruit_Circuitpython_Display_Text, where each letter in a label has the
# same color
#

View file

@ -1,5 +1,5 @@
# This example implements a simple two line scroller using
# Adafruit_CircuitPython_Display_Text. Each line has its own color
# Adafruit_CircuitPython_Display_Text. Each line has its own color
# and it is possible to modify the example to use other fonts and non-standard
# characters.
@ -48,7 +48,7 @@ def scroll(line):
if line.x < -line_width:
line.x = display.width
# You can add more effects in this loop. For instance, maybe you want to set the
# You can add more effects in this loop. For instance, maybe you want to set the
# color of each label to a different value
while True:
scroll(line1)