Skip to content

Text Position Required With Scrolling #35

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

Closed
jammininmypjs opened this issue Oct 30, 2020 · 1 comment · Fixed by #36
Closed

Text Position Required With Scrolling #35

jammininmypjs opened this issue Oct 30, 2020 · 1 comment · Fixed by #36

Comments

@jammininmypjs
Copy link

text_position = (self.display.width, text_position[1])

When I try to add_text to the MatrixPortal I get the error:

      File "code.py", line 85, in <module>
      File "code.py", line 70, in init_matrixportal
      File "adafruit_matrixportal/matrixportal.py", line 182, in add_text
    TypeError: 'NoneType' object is not subscriptable

https://forums.adafruit.com/viewtopic.php?f=60&t=171208&p=836374#p836374

In the support forums, it was determined the above line of code is expecting that you also provide the text_position parameter when specifying scrolling

@makermelissa
Copy link
Collaborator

Yeah, we should probably check for this when the text is added so the user has a more friendly error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants