File tree Expand file tree Collapse file tree 2 files changed +7
-19
lines changed Expand file tree Collapse file tree 2 files changed +7
-19
lines changed Original file line number Diff line number Diff line change 1
- # Sample code using the textMap library and the "textBox" wrapper class
2
- # Creates four textBox instances
3
- # Inserts each textBox into a tileGrid group
4
- # Writes text into the box one character at a time
5
- # Moves the position of the textBox around the display
6
- # Clears each textBox after the full string is written (even if the text is outside of the box)
1
+ # Sample for comparing label and bitmap_label positioning with Builtin or loaded BDF fonts
7
2
8
- # import textmap
9
- # from textmap import textBox
3
+ # pylint: disable=no-member
10
4
11
5
import gc
12
6
import time
17
11
18
12
from adafruit_display_text import bitmap_label
19
13
20
- # from adafruit_display_text import bitmap_label as Label
21
-
22
14
from adafruit_display_text import label
23
15
16
+ # pylint: disable=no-member
17
+
24
18
# Setup the SPI display
25
19
##########
26
20
# Use this Boolean variables to select which font style to use
Original file line number Diff line number Diff line change 1
- # Sample code using the textMap library and the "textBox" wrapper class
2
- # Creates four textBox instances
3
- # Inserts each textBox into a tileGrid group
4
- # Writes text into the box one character at a time
5
- # Moves the position of the textBox around the display
6
- # Clears each textBox after the full string is written (even if the text is outside of the box)
7
-
8
- # import textmap
9
- # from textmap import textBox
1
+ # Sample for comparing label and bitmap_label memory usage with Builtin or loaded BDF fonts
10
2
11
3
import gc
12
4
import time
15
7
import terminalio
16
8
17
9
10
+ # pylint: disable=no-member
11
+
18
12
##########
19
13
# Use these Boolean variables to select the text display library and which font style to use
20
14
##########
You can’t perform that action at this time.
0 commit comments