File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 66import displayio
77
88from adafruit_bitmap_font import bitmap_font
9- from adafruit_display_text .text_area import TextArea
9+ from adafruit_display_text .label import Label
1010
1111backlight = pulseio .PWMOut (microcontroller .pin .PB21 ) #pylint: disable=no-member
1212
3131for demo_text in demos :
3232 for font in fonts :
3333 print ("Font load {}" .format (font .name ))
34- area = TextArea (font , text = demo_text )
34+ area = Label (font , text = demo_text )
3535 area .y = y
3636 splash .append (area )
3737
Original file line number Diff line number Diff line change 11import os
22import board
33import displayio
4- from adafruit_display_text .text_area import TextArea
4+ from adafruit_display_text .label import Label
55from adafruit_bitmap_font import bitmap_font
66
77# the current working directory (where this file is)
3737
3838print (DISPLAY_STRING )
3939
40- text = TextArea (font , text = DISPLAY_STRING )
40+ text = Label (font , text = DISPLAY_STRING )
4141text .x = 20
4242text .y = 100
4343text .color = 0x0
You can’t perform that action at this time.
0 commit comments