This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sample for comparing label and bitmap_label positioning with Builtin or loaded BDF fonts | |
# pylint: disable=no-member | |
import gc | |
import time | |
import board | |
import displayio | |
import terminalio | |
from adafruit_bitmap_font import bitmap_font |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sample for comparing label and bitmap_label positioning with Builtin or loaded BDF fonts | |
# pylint: disable=no-member | |
import gc | |
import time | |
import board | |
import displayio | |
import terminalio | |
from adafruit_bitmap_font import bitmap_font |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STARTFONT 2.1 | |
FONT -FontForge-Black Lives Matter-Regular-R-Normal--96-920-75-75-P-402-ISO10646-1 | |
SIZE 92 75 75 | |
FONTBOUNDINGBOX 57 80 0 -7 | |
COMMENT "Generated by fontforge, http://fontforge.sourceforge.net" | |
STARTPROPERTIES 39 | |
FOUNDRY "FontForge" | |
FAMILY_NAME "Black Lives Matter" | |
WEIGHT_NAME "Regular" | |
SLANT "R" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STARTFONT 2.1 | |
FONT -FontForge-Cornerstone-Book-R-Normal--84-810-75-75-P-460-ISO10646-1 | |
SIZE 81 75 75 | |
FONTBOUNDINGBOX 70 79 -1 -12 | |
COMMENT "Generated by fontforge, http://fontforge.sourceforge.net" | |
COMMENT "SIL Open Font License" | |
STARTPROPERTIES 40 | |
FOUNDRY "FontForge" | |
FAMILY_NAME "Cornerstone" | |
WEIGHT_NAME "Book" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import board | |
import terminalio | |
import displayio | |
from adafruit_display_text import bitmap_label as label | |
def wheel(pos): | |
# input a value 0 to 255 to get a color value | |
# the colors are a transition r-g-b-back to r. | |
if pos < 1 or pos > 255: | |
return (0,0,0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gc | |
import time | |
import board | |
import displayio | |
import terminalio | |
class testGroup(displayio.Group): | |
def __init__(self, | |
color): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a trial of the switch_round_horizontal | |
# for use on the PyPortal | |
# | |
# To do: | |
# Allow color handling for both RGB tuples (255, 255, 255) or hex values (0xFFFFFF) | |
# | |
import time | |
#import random | |
import board |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a trial of the switch_round_horizontal | |
# for use on the PyPortal | |
# | |
# To do: | |
# Allow color handling for both RGB tuples (255, 255, 255) or hex values (0xFFFFFF) | |
# | |
import time | |
import board |
OlderNewer