Skip to content

Commit

Permalink
修复 self.font_size 名称冲突
Browse files Browse the repository at this point in the history
  • Loading branch information
funnygeeker committed Nov 13, 2023
1 parent fb18b05 commit a8c902b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file modified libs/easydisplay.mpy
Binary file not shown.
5 changes: 3 additions & 2 deletions libs/easydisplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ def __init__(self, display,
self.color_type = color_type
self.color = color
self.bg_color = bg_color
self.font_size = size
self.size = size
self.auto_wrap = auto_wrap
self.half_char = half_char
self.line_spacing = line_spacing
self.font_size = None
self.font_bmf_info = None
self.font_version = None
self.font_file = None
Expand Down Expand Up @@ -293,7 +294,7 @@ def text(self, s: str, x: int, y: int,
if key is None:
key = self._key
if size is None:
size = self.font_size
size = self.size
if show is None:
show = self._show
if clear is None:
Expand Down

0 comments on commit a8c902b

Please sign in to comment.