Closed martingosnell closed 3 years ago
dispayio.Group does not take a max_size
argument anymore in CP7.
https://circuitpython.readthedocs.io/en/latest/shared-bindings/displayio/index.html#displayio.Group
You link the pdf in your code, it looks like the pdf has an outdated version of the code compared to the web version. I don't know how that works, but I'll try to get the info to the right people if they miss this.
I advise using the "download project bundle" button here instead to get an up-to-date version of the code: https://learn.adafruit.com/rgb-matrix-automatic-youtube-on-air-sign/code-the-on-air-sign
@Neradoc Thanks for diagnosing this. I've reported it to the Learn Guide folks. @martingosnell Yes, get the code from the online guide. Sorry for the mismatch.
CircuitPython version
Code/REPL
Behavior
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable. code.py output: Traceback (most recent call last): File "code.py", line 27, in
TypeError: extra keyword arguments given
Code done running.
Description
So I just want some code to simply draw a shape on an LED array display so that I can adapt it to my requirements. I decided to use the adafruit youtube on air example (less the network stuff) as a basis and simplify the code just to draw something (If any one has an even simpler example that works I would love to hear).. Ive adapted the code as seen above but I do not understand the issue with line 27. Looking into at displayio.Group the statement displayio.Group(max_size=22) looks fine and I also tried displayio.Group(max_size=22, scale=1, x=0, y=0) which gave the same error. Apologies if this is not a bug and I've done something ridiculous but I cannot see the problem. Cheers
Additional information
Tried resetting, reinstalling circuitpython, emptying trash and reloading libs, used latest install and libs downloaded a few days ago.... I anyone has some other very simply examples for darwing a shape that would be terrific, I want to get it working on the 64x32 LED matrix supplied with my matrix portal then get it working on the 2.5mm 64x64... cheers