Skip to content

Commit

Permalink
Merge pull request #52 from steka/improve_font_to_bin
Browse files Browse the repository at this point in the history
Reformat font data to make it easier to view and change.
  • Loading branch information
dhalbert committed Apr 24, 2023
2 parents 9d05e34 + 12fed55 commit 62ff15e
Show file tree
Hide file tree
Showing 2 changed files with 2,585 additions and 264 deletions.
4 changes: 3 additions & 1 deletion examples/framebuf_simpletest.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT

import math
import adafruit_framebuf

print("framebuf test will draw to the REPL")

WIDTH = 32
HEIGHT = 8

buffer = bytearray(round(WIDTH * HEIGHT / 8))
buffer = bytearray(round(WIDTH * math.ceil(HEIGHT / 8)))
fb = adafruit_framebuf.FrameBuffer(
buffer, WIDTH, HEIGHT, buf_format=adafruit_framebuf.MVLSB
)


# Ascii printer for very small framebufs!
def print_buffer(the_fb):
print("." * (the_fb.width + 2))
Expand Down
Loading

0 comments on commit 62ff15e

Please sign in to comment.