You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to run the example file "display_button_simpletest.py" in the Adafruit Circuit Python Bundle (20230511) example directory. It throws an error "Group full." No changes were made to the original code. I did not reflash the firmware, either.
Steps taken:
Move "display_button_simpletest.py" to the PyPortal Titano drive
Rename file to "code.py"
create lib folder and add libraries:
adafruit_bitmap_font/*
adafruit_button.py
adafruit_display_shapes/*
adafruit_display_text/*
adafruit_touchscreen.py
Error thrown (see output below)
After some troubleshooting, I was able to get the code to run by shortening the length of the button label to just two characters. After that worked, I reset the label to "HELLO WORLD" and attempted increasing the width of the rectangle in increments of 100 up to 800 but this did not work.
As this is an example file, I would assume that it should just work.
Serial output:
code.py output:
Traceback (most recent call last):
File "code.py", line 101, in <module>
File "/lib/adafruit_button.py", line 174, in __init__
File "/lib/adafruit_button.py", line 192, in label
File "/lib/adafruit_display_text/label.py", line 100, in __init__
File "/lib/adafruit_display_text/label.py", line 424, in _reset_text
File "/lib/adafruit_display_text/label.py", line 375, in _update_text
RuntimeError: Group full
Code:
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries# SPDX-License-Identifier: MIT"""Simple button example."""importboardimportdisplayioimportterminalioimportadafruit_touchscreenfromadafruit_buttonimportButton# use built in display (MagTag, PyPortal, PyGamer, PyBadge, CLUE, etc.)# see guide for setting up external displays (TFT / OLED breakouts, RGB matrices, etc.)# https://learn.adafruit.com/circuitpython-display-support-using-displayio/display-and-display-busdisplay=board.DISPLAY# --| Button Config |-------------------------------------------------BUTTON_X=110BUTTON_Y=95BUTTON_WIDTH=100BUTTON_HEIGHT=50BUTTON_STYLE=Button.ROUNDRECTBUTTON_FILL_COLOR=0x00FFFFBUTTON_OUTLINE_COLOR=0xFF00FFBUTTON_LABEL="HELLO WORLD"BUTTON_LABEL_COLOR=0x000000# --| Button Config |-------------------------------------------------# Setup touchscreen (PyPortal)ts=adafruit_touchscreen.Touchscreen(
board.TOUCH_XL,
board.TOUCH_XR,
board.TOUCH_YD,
board.TOUCH_YU,
calibration=((5200, 59000), (5800, 57000)),
size=(display.width, display.height),
)
# Make the display contextsplash=displayio.Group()
display.show(splash)
# Make the buttonbutton=Button(
x=BUTTON_X,
y=BUTTON_Y,
width=BUTTON_WIDTH,
height=BUTTON_HEIGHT,
style=BUTTON_STYLE,
fill_color=BUTTON_FILL_COLOR,
outline_color=BUTTON_OUTLINE_COLOR,
label=BUTTON_LABEL,
label_font=terminalio.FONT,
label_color=BUTTON_LABEL_COLOR,
)
# Add button to the display contextsplash.append(button)
# Loop and look for toucheswhileTrue:
p=ts.touch_pointifp:
ifbutton.contains(p):
button.selected=Trueelse:
button.selected=False# if touch is dragged outside of buttonelse:
button.selected=False# if touch is released
The text was updated successfully, but these errors were encountered:
@matthewepler can you post the contents of your boot_out.txt file that should be on the CIRCUITPY drive?
I'm curious what version of circuitpython is on your device because Groups have not had a size limit for a while now, so I'm guessing the version you have may be an older one from before that change was made. It's possible you might just need to update to a newer version and then it will be working on your device.
I'm attempting to run the example file "display_button_simpletest.py" in the Adafruit Circuit Python Bundle (20230511) example directory. It throws an error "Group full." No changes were made to the original code. I did not reflash the firmware, either.
Steps taken:
After some troubleshooting, I was able to get the code to run by shortening the length of the button label to just two characters. After that worked, I reset the label to "HELLO WORLD" and attempted increasing the width of the rectangle in increments of 100 up to 800 but this did not work.
As this is an example file, I would assume that it should just work.
Serial output:
Code:
The text was updated successfully, but these errors were encountered: