Skip to content

Conversation

@jerr0328
Copy link
Contributor

@jerr0328 jerr0328 commented Jul 22, 2023

The font is bundled in the framebuf dependency's examples (see: adafruit/Adafruit_CircuitPython_framebuf#11)

I don't have this board to test with, just contributing from Europython 2023 Sprints 👋

Copy link
Member

@tekktrik tekktrik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small request, but otherwise looks ready to go!

:param int xpos: x position of LED in matrix
:param int ypos: y position of LED in matrix
:param int bit_value: > 1 sets the text, otherwise resets
:param str font_name: path to binary font file (default: "font5x8.bin")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding based on looking how FrameBuffer.text() works is that once the font is set for the Matrix8x8 it can't be changed, and it is set on the first call to this method. It may be helpful then to add that fact here to prevent future confusion.

@tekktrik
Copy link
Member

I am going to unlink the issue though, since that seems to be more of a problem with the default font not being included rather than the ability to alter it.

Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a note about the font not being able to be changed after the first time.

This looks good to me now.

@FoamyGuy FoamyGuy merged commit 8b29b58 into adafruit:main Sep 5, 2023
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Sep 5, 2023
Updating https://github.com/adafruit/Adafruit_CircuitPython_MAX7219 to 1.5.12 from 1.5.11:
  > Merge pull request adafruit/Adafruit_CircuitPython_MAX7219#47 from jerr0328/fix-36

Updating https://github.com/adafruit/Adafruit_CircuitPython_turtle to 2.2.16 from 2.2.15:
  > Merge pull request adafruit/Adafruit_CircuitPython_turtle#35 from rrahkola/dev/add_type_annotations

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants