Skip to content

Commit bb69581

Browse files
committed
fix wrong docstring
1 parent 95c0d36 commit bb69581

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

adafruit_framebuf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,11 @@ def scroll(self):
227227

228228
def text(self, string, x, y, color, *,
229229
font_name="font5x8.bin"):
230-
"""text is not yet implemented"""
230+
"""Write an ascii string to location (x, y) as the bottom left corner,
231+
in a given color, in left-to-right fashion.
232+
Does not handle text wrapping. You can also pass in a font_name, but
233+
this has to be generated as a special binary format and placed in the
234+
working directory of the main script (so, probably /)"""
231235
if not self._font or self._font.font_name != font_name:
232236
# load the font!
233237
self._font = BitmapFont()

0 commit comments

Comments
 (0)