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 6
6
import displayio
7
7
8
8
from adafruit_bitmap_font import bitmap_font
9
- from adafruit_display_text .text_area import TextArea
9
+ from adafruit_display_text .label import Label
10
10
11
11
backlight = pulseio .PWMOut (microcontroller .pin .PB21 ) #pylint: disable=no-member
12
12
31
31
for demo_text in demos :
32
32
for font in fonts :
33
33
print ("Font load {}" .format (font .name ))
34
- area = TextArea (font , text = demo_text )
34
+ area = Label (font , text = demo_text )
35
35
area .y = y
36
36
splash .append (area )
37
37
Original file line number Diff line number Diff line change 1
1
import os
2
2
import board
3
3
import displayio
4
- from adafruit_display_text .text_area import TextArea
4
+ from adafruit_display_text .label import Label
5
5
from adafruit_bitmap_font import bitmap_font
6
6
7
7
# the current working directory (where this file is)
37
37
38
38
print (DISPLAY_STRING )
39
39
40
- text = TextArea (font , text = DISPLAY_STRING )
40
+ text = Label (font , text = DISPLAY_STRING )
41
41
text .x = 20
42
42
text .y = 100
43
43
text .color = 0x0
You can’t perform that action at this time.
0 commit comments