code.py
 1  # SPDX-FileCopyrightText: 2020 Tim C, written for Adafruit Industries
 2  #
 3  # SPDX-License-Identifier: Unlicense
 4  """
 5  Illustrates the color parameter of display_text label and bitmap_label
 6  """
 7  import board
 8  import displayio
 9  import terminalio
10  from adafruit_display_text import label
11  
12  # Make the display context. Change size if you want
13  display = board.DISPLAY
14  
15  # Make the display context
16  main_group = displayio.Group()
17  display.show(main_group)
18  
19  reg_label = label.Label(
20      font=terminalio.FONT,
21      text="CircuitPython",
22      scale=3,
23      color=0xDD00DD,
24  )
25  
26  reg_label.anchor_point = (0, 0)
27  reg_label.anchored_position = (20, 20)
28  
29  main_group.append(reg_label)
30  
31  while True:
32      pass