Skip to content

Commit 65afc24

Browse files
author
funnygeeker
committed
增加show函数
1 parent 7570f0c commit 65afc24

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

libs/easydisplay.mpy

41 Bytes
Binary file not shown.

libs/easydisplay.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@ def clear(self):
8989
"""
9090
self.display.fill(0)
9191

92+
def show(self):
93+
"""
94+
显示
95+
"""
96+
try:
97+
self.display.show()
98+
except AttributeError:
99+
pass
100+
92101
@staticmethod
93102
def _calculate_palette(color, bg_color) -> tuple:
94103
"""

0 commit comments

Comments
 (0)