@@ -261,7 +261,7 @@ def load_font(self, file: str):
261
261
self .font_bitmap_size = self .font_bmf_info [8 ]
262
262
263
263
def text (self , s : str , x : int , y : int ,
264
- color : int = 0xFFFF , bg_color : int = 0 , size : int = None ,
264
+ color : int = None , bg_color : int = None , size : int = None ,
265
265
half_char : bool = None , auto_wrap : bool = None , show : bool = None , clear : bool = None ,
266
266
key : bool = None , invert : bool = None , line_spacing : int = None , * args , ** kwargs ):
267
267
"""
@@ -401,7 +401,7 @@ def text(self, s: str, x: int, y: int,
401
401
def ppm (self , * args , ** kwargs ):
402
402
self .pbm (* args , ** kwargs )
403
403
404
- def pbm (self , file , x , y , key : int = - 1 , show : bool = None , clear : bool = None , invert : bool = False ,
404
+ def pbm (self , file , x , y , key : int = None , show : bool = None , clear : bool = None , invert : bool = False ,
405
405
color : int = None , bg_color : int = None ):
406
406
"""
407
407
Display PBM / PPM Image
@@ -578,7 +578,7 @@ def pbm(self, file, x, y, key: int = -1, show: bool = None, clear: bool = None,
578
578
579
579
self .show () if show else 0 # 立即显示
580
580
581
- def bmp (self , file , x , y , key : int = - 1 , show : bool = None , clear : bool = None , invert : bool = False ,
581
+ def bmp (self , file , x , y , key : int = None , show : bool = None , clear : bool = None , invert : bool = False ,
582
582
color : int = None , bg_color : int = None ):
583
583
"""
584
584
Display BMP Image 显示 bmp 图片
@@ -722,7 +722,7 @@ def bmp(self, file, x, y, key: int = -1, show: bool = None, clear: bool = None,
722
722
else :
723
723
raise TypeError ("Unsupported file type: only BMP images are supported." )
724
724
725
- def dat (self , file , x , y , key = - 1 ):
725
+ def dat (self , file , x , y , key = None ):
726
726
"""
727
727
Display screen raw data file, with extremely high efficiency, only supports RGB565 format.
728
728
显示表示屏幕原始数据的文件,拥有极高的效率,仅支持 RGB565 格式
0 commit comments