Skip to content

Displayio / MiniTFTFeatherWing noise at left edge of screen #1923

@iraytrace

Description

@iraytrace

The following code:

     import time
     from adafruit_featherwing import minitft_featherwing
     minitft = minitft_featherwing.MiniTFTFeatherWing()
     print('hello')
     while True:
         pass

Produces the following image with noise on the left side:
TFT_label_bug_2

This noise persists even if the display is more substantially over-written as in:

import time
import board
from adafruit_featherwing import minitft_featherwing
import displayio
import terminalio
from adafruit_display_text import label

minitft = minitft_featherwing.MiniTFTFeatherWing()

label_count = 5
labels = list()
group = displayio.Group(max_size=label_count, scale=1, x=0, y=0)
font = terminalio.FONT
f_width, f_height = font.get_bounding_box()

colors = [0xffffff, 0xb0b0b0, 0xffff00, 0xb0b0b0, 0x00d0d0]
for i in range(label_count):
    labels.append(label.Label(font, max_glyphs=37, color=colors[i], line_spacing=0.94))
    labels[-1].x = 5
    labels[-1].y = i * f_height + int(f_height*.5)
    labels[-1].text = 'line %d' % i
    group.append(labels[-1])

minitft.display.show(group)
while True:
    pass

Which produces:

TFT_label_bug

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions