GithubHelp home page GithubHelp logo

Comments (4)

lastcoolnameleft avatar lastcoolnameleft commented on June 9, 2024

I'm experiencing this issue with adafruit-circuitpython-matrixportal_m4-en_US-6.0.0-rc.1.uf2

from adafruit_circuitpython_display_text.

FoamyGuy avatar FoamyGuy commented on June 9, 2024

The example code is assuming that it will get run on a device that has a display built in (in which case it would be available as board.DISPLAY within the code).

But the Matrix Portal needs to do a bit of setup first before it can start using the display.

There is a MatrixPortal library which will do lots of the set up for you. If you use that the simpletest example code can be adapted to work on the Matrix portal like this:

import terminalio
from adafruit_display_text import label
from adafruit_matrixportal.matrix import Matrix
matrix = Matrix()
display = matrix.display

text = "Hello\nworld"
text_area = label.Label(terminalio.FONT, text=text)
text_area.x = 1
text_area.y = 4
display.show(text_area)
while True:
    pass

from adafruit_circuitpython_display_text.

FoamyGuy avatar FoamyGuy commented on June 9, 2024

@lastcoolnameleft This example has been added in the examples directory now: https://github.com/adafruit/Adafruit_CircuitPython_Display_Text/blob/master/examples/display_text_matrixportal.py

I'm going to close this issue for now. But if you end up having trouble when you try this feel free to ping me here or in the discord I can help you out.

from adafruit_circuitpython_display_text.

lastcoolnameleft avatar lastcoolnameleft commented on June 9, 2024

Thanks for the update and clarification about how/when to use it. The documentation just pointed me to the repo so I was unaware that the code was for a specific board. I'm good with it being closed.

from adafruit_circuitpython_display_text.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.