-
Notifications
You must be signed in to change notification settings - Fork 1
ValueError: object not in sequence #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@DJDevon3 It appears that I mistakenly left an extra divider line removal routine in GridLayout. Likely when it changed from displayio.Shape to vectorio.Rectangle for drawing the lines. It turns out that my pyportal actually had an older version of GridLayout on it while I was working on this library and I did not realize that. The version I had didn't contain the same problem so it went unnoticed. I've added a new commit adafruit/Adafruit_CircuitPython_DisplayIO_Layout@baeccd1 to the branch from #92 which addresses that problem by removing the extra divider line removal. You can download the updated zip from that branch page here: https://github.com/FoamyGuy/Adafruit_CircuitPython_DisplayIO_Layout/tree/gridlayout_cell_contains This version seems to work with version 8.2.7 as well as the other versions I tested. On a Feather S3 with 3.5" TFT Wing. |
That did the trick. Have it working with the json file now. Shift works well too. Can use your mode switches for adding special characters and more features. I'll help tidy up the simpletest example too so you can have fun with 1D-Chomper this week. Thank you! |
After using the json method for a day discovered that the performance difference I saw on your stream is coming from reading and enumerating through the json file itself. I'm seeing the same slower grid line loading now too. Using hard coded label appends within code.py is much faster but json is far more convenient especially for multiple custom layouts. Will have to remain a cost for convenience but would like to note that a performance gain is possible with hard coded labels vs json loads (and enough psram). Your built-in debouncing also now prevents double key presses which makes the user experience more enjoyable. |
Circuit Python 9.2.7 (maybe I should upgrade?) Adafruit ESP32-S3 Feather with 3.5" TFT Featherwing
It's unable to get past
soft_kbd = SoftKeyboard(2, 100, DISPLAY_WIDTH-2, DISPLAY_HEIGHT-100, terminalio.FONT, forkawesome_font)
Using zip download from your CircuitPython_SoftKeyboard repo as of about 5 hours ago.
Using PR #92 you made for grid_layout.py To my knowledge that's the most recent commit of grid_layout.
I attempted to integrate it into feather weather and got that error... and slimmed it all the way down to this point and still can't past the object not in sequence.
The text was updated successfully, but these errors were encountered: