m5stack-stubs 0.1.0__tar.gz → 2.5.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {m5stack_stubs-0.1.0 → m5stack_stubs-2.5.3}/M5.pyi +69 -8
- {m5stack_stubs-0.1.0 → m5stack_stubs-2.5.3}/PKG-INFO +8 -2
- {m5stack_stubs-0.1.0 → m5stack_stubs-2.5.3}/README.md +6 -0
- {m5stack_stubs-0.1.0 → m5stack_stubs-2.5.3}/pyproject.toml +1 -1
- {m5stack_stubs-0.1.0 → m5stack_stubs-2.5.3}/.gitignore +0 -0
|
@@ -4,7 +4,7 @@ Type stubs for the M5Stack UIFlow2 firmware ``M5`` module.
|
|
|
4
4
|
AUTO-GENERATED by m5stubgen. Do not edit by hand.
|
|
5
5
|
* structure & constant values: device introspection snapshot
|
|
6
6
|
* parameter & return signatures: M5Unified C bindings (mpy_m5*.cpp)
|
|
7
|
-
Firmware: uiflow-micropython
|
|
7
|
+
Firmware: uiflow-micropython 2.5.3 @ 50e4407804
|
|
8
8
|
"""
|
|
9
9
|
from typing import Any
|
|
10
10
|
|
|
@@ -69,31 +69,57 @@ class _Display:
|
|
|
69
69
|
EPD_TEXT: int = 2
|
|
70
70
|
class FONTS:
|
|
71
71
|
ASCII7: Any
|
|
72
|
+
ASCII7: Any
|
|
73
|
+
AlibabaPuHuiTiCN24: Any
|
|
72
74
|
AlibabaPuHuiTiCN24: Any
|
|
73
75
|
AlibabaSansJA24: Any
|
|
76
|
+
AlibabaSansJA24: Any
|
|
77
|
+
AlibabaSansKR24: Any
|
|
74
78
|
AlibabaSansKR24: Any
|
|
75
79
|
DejaVu12: Any
|
|
80
|
+
DejaVu12: Any
|
|
81
|
+
DejaVu18: Any
|
|
76
82
|
DejaVu18: Any
|
|
77
83
|
DejaVu24: Any
|
|
84
|
+
DejaVu24: Any
|
|
78
85
|
DejaVu40: Any
|
|
86
|
+
DejaVu40: Any
|
|
87
|
+
DejaVu56: Any
|
|
79
88
|
DejaVu56: Any
|
|
80
89
|
DejaVu72: Any
|
|
90
|
+
DejaVu72: Any
|
|
81
91
|
DejaVu9: Any
|
|
92
|
+
DejaVu9: Any
|
|
93
|
+
EFontCN24: Any
|
|
82
94
|
EFontCN24: Any
|
|
83
95
|
EFontJA24: Any
|
|
96
|
+
EFontJA24: Any
|
|
84
97
|
EFontKR24: Any
|
|
98
|
+
EFontKR24: Any
|
|
99
|
+
Montserrat12: Any
|
|
85
100
|
Montserrat12: Any
|
|
86
101
|
Montserrat14: Any
|
|
102
|
+
Montserrat14: Any
|
|
103
|
+
Montserrat16: Any
|
|
87
104
|
Montserrat16: Any
|
|
88
105
|
Montserrat18: Any
|
|
106
|
+
Montserrat18: Any
|
|
107
|
+
Montserrat20: Any
|
|
89
108
|
Montserrat20: Any
|
|
90
109
|
Montserrat22: Any
|
|
110
|
+
Montserrat22: Any
|
|
91
111
|
Montserrat24: Any
|
|
112
|
+
Montserrat24: Any
|
|
113
|
+
Montserrat30: Any
|
|
92
114
|
Montserrat30: Any
|
|
93
115
|
Montserrat36: Any
|
|
116
|
+
Montserrat36: Any
|
|
94
117
|
Montserrat40: Any
|
|
118
|
+
Montserrat40: Any
|
|
119
|
+
Montserrat44: Any
|
|
95
120
|
Montserrat44: Any
|
|
96
121
|
Montserrat48: Any
|
|
122
|
+
Montserrat48: Any
|
|
97
123
|
def clear(self, color: int = ...) -> None: ...
|
|
98
124
|
def close(self, *args: Any, **kwargs: Any) -> Any: ...
|
|
99
125
|
def delete(self) -> None: ...
|
|
@@ -107,6 +133,7 @@ class _Display:
|
|
|
107
133
|
def drawJpg(self, img: Any, x: int = ..., y: int = ..., maxW: int = ..., maxH: int = ..., offX: int = ..., offY: int = ..., scaleX: Any = ..., scaleY: Any = ...) -> None: ...
|
|
108
134
|
def drawLine(self, x0: int, y0: int, x1: int, y1: int, color: int = ...) -> None: ...
|
|
109
135
|
def drawPixel(self, x: int, y: int, color: int = ...) -> None: ...
|
|
136
|
+
def drawPixels(self, points: Any, color: int = ..., clear: bool = ..., background: int = ...) -> None: ...
|
|
110
137
|
def drawPng(self, img: Any, x: int = ..., y: int = ..., maxW: int = ..., maxH: int = ..., offX: int = ..., offY: int = ..., scaleX: Any = ..., scaleY: Any = ...) -> None: ...
|
|
111
138
|
def drawQR(self, text: str, x: int, y: int, w: int, version: int = ...) -> None: ...
|
|
112
139
|
def drawRawBuf(self, buf: Any, x: int, y: int, w: int, h: int, len: int, swap: bool = ...) -> None: ...
|
|
@@ -127,7 +154,7 @@ class _Display:
|
|
|
127
154
|
def fontHeight(self, font: Any = ...) -> int: ...
|
|
128
155
|
def getBrightness(self) -> int: ...
|
|
129
156
|
def getColorDepth(self) -> int: ...
|
|
130
|
-
def getCursor(self) -> int: ...
|
|
157
|
+
def getCursor(self) -> tuple[int, int]: ...
|
|
131
158
|
def getEpdMode(self) -> int: ...
|
|
132
159
|
def getRotation(self) -> int: ...
|
|
133
160
|
def height(self) -> int: ...
|
|
@@ -176,9 +203,9 @@ class _IMU:
|
|
|
176
203
|
NULL: int = 0
|
|
177
204
|
SH200Q: int = 2
|
|
178
205
|
UNKNOWN: int = 1
|
|
179
|
-
def getAccel(self) -> float: ...
|
|
180
|
-
def getGyro(self) -> float: ...
|
|
181
|
-
def getMag(self) -> float: ...
|
|
206
|
+
def getAccel(self) -> tuple[float, float, float]: ...
|
|
207
|
+
def getGyro(self) -> tuple[float, float, float]: ...
|
|
208
|
+
def getMag(self) -> tuple[float, float, float]: ...
|
|
182
209
|
def getType(self) -> int: ...
|
|
183
210
|
def isEnabled(self) -> bool: ...
|
|
184
211
|
|
|
@@ -207,6 +234,7 @@ class _Power:
|
|
|
207
234
|
B2: int = 4
|
|
208
235
|
C1: int = 8
|
|
209
236
|
C2: int = 16
|
|
237
|
+
EXT: int = 256
|
|
210
238
|
MAIN: int = 32768
|
|
211
239
|
PWR485: int = 64
|
|
212
240
|
PWRCAN: int = 128
|
|
@@ -261,8 +289,8 @@ class _Speaker:
|
|
|
261
289
|
|
|
262
290
|
class _Touch:
|
|
263
291
|
def getCount(self) -> int: ...
|
|
264
|
-
def getDetail(self, i: int = ...) -> bool: ...
|
|
265
|
-
def getTouchPointRaw(self, i: int = ...) -> int: ...
|
|
292
|
+
def getDetail(self, i: int = ...) -> tuple[int, int, int, int, bool, bool, bool, bool, bool, bool, bool]: ...
|
|
293
|
+
def getTouchPointRaw(self, i: int = ...) -> tuple[int, int, int, int]: ...
|
|
266
294
|
def getX(self) -> int: ...
|
|
267
295
|
def getY(self) -> int: ...
|
|
268
296
|
|
|
@@ -285,6 +313,7 @@ class BOARD:
|
|
|
285
313
|
M5Capsule: int = 139
|
|
286
314
|
M5Cardputer: int = 14
|
|
287
315
|
M5CardputerADV: int = 24
|
|
316
|
+
M5CoreMatrix: int = 152
|
|
288
317
|
M5Dial: int = 12
|
|
289
318
|
M5DinMeter: int = 13
|
|
290
319
|
M5DualKey: int = 147
|
|
@@ -304,10 +333,13 @@ class BOARD:
|
|
|
304
333
|
M5StamPLC: int = 21
|
|
305
334
|
M5StampC3: int = 134
|
|
306
335
|
M5StampC3U: int = 135
|
|
336
|
+
M5StampC5: int = 153
|
|
337
|
+
M5StampC6: int = 154
|
|
307
338
|
M5StampP4: int = 150
|
|
308
339
|
M5StampPico: int = 133
|
|
309
340
|
M5StampS3: int = 136
|
|
310
341
|
M5StampS3Bat: int = 149
|
|
342
|
+
M5StampS3Mini: int = 155
|
|
311
343
|
M5Station: int = 9
|
|
312
344
|
M5StickC: int = 3
|
|
313
345
|
M5StickCPlus: int = 4
|
|
@@ -315,8 +347,10 @@ class BOARD:
|
|
|
315
347
|
M5StickS3: int = 26
|
|
316
348
|
M5StopWatch: int = 30
|
|
317
349
|
M5Tab5: int = 22
|
|
350
|
+
M5Tab5X: int = 35
|
|
318
351
|
M5TimerCam: int = 132
|
|
319
352
|
M5Tough: int = 8
|
|
353
|
+
M5ToughC5: int = 33
|
|
320
354
|
M5UnitC6L: int = 25
|
|
321
355
|
M5UnitGLASS: int = 196
|
|
322
356
|
M5UnitGLASS2: int = 197
|
|
@@ -355,31 +389,57 @@ class UserDisplay:
|
|
|
355
389
|
EPD_TEXT: int = 2
|
|
356
390
|
class FONTS:
|
|
357
391
|
ASCII7: Any
|
|
392
|
+
ASCII7: Any
|
|
393
|
+
AlibabaPuHuiTiCN24: Any
|
|
358
394
|
AlibabaPuHuiTiCN24: Any
|
|
359
395
|
AlibabaSansJA24: Any
|
|
396
|
+
AlibabaSansJA24: Any
|
|
397
|
+
AlibabaSansKR24: Any
|
|
360
398
|
AlibabaSansKR24: Any
|
|
361
399
|
DejaVu12: Any
|
|
400
|
+
DejaVu12: Any
|
|
401
|
+
DejaVu18: Any
|
|
362
402
|
DejaVu18: Any
|
|
363
403
|
DejaVu24: Any
|
|
404
|
+
DejaVu24: Any
|
|
364
405
|
DejaVu40: Any
|
|
406
|
+
DejaVu40: Any
|
|
407
|
+
DejaVu56: Any
|
|
365
408
|
DejaVu56: Any
|
|
366
409
|
DejaVu72: Any
|
|
410
|
+
DejaVu72: Any
|
|
367
411
|
DejaVu9: Any
|
|
412
|
+
DejaVu9: Any
|
|
413
|
+
EFontCN24: Any
|
|
368
414
|
EFontCN24: Any
|
|
369
415
|
EFontJA24: Any
|
|
416
|
+
EFontJA24: Any
|
|
370
417
|
EFontKR24: Any
|
|
418
|
+
EFontKR24: Any
|
|
419
|
+
Montserrat12: Any
|
|
371
420
|
Montserrat12: Any
|
|
372
421
|
Montserrat14: Any
|
|
422
|
+
Montserrat14: Any
|
|
423
|
+
Montserrat16: Any
|
|
373
424
|
Montserrat16: Any
|
|
374
425
|
Montserrat18: Any
|
|
426
|
+
Montserrat18: Any
|
|
427
|
+
Montserrat20: Any
|
|
375
428
|
Montserrat20: Any
|
|
376
429
|
Montserrat22: Any
|
|
430
|
+
Montserrat22: Any
|
|
377
431
|
Montserrat24: Any
|
|
432
|
+
Montserrat24: Any
|
|
433
|
+
Montserrat30: Any
|
|
378
434
|
Montserrat30: Any
|
|
379
435
|
Montserrat36: Any
|
|
436
|
+
Montserrat36: Any
|
|
380
437
|
Montserrat40: Any
|
|
438
|
+
Montserrat40: Any
|
|
439
|
+
Montserrat44: Any
|
|
381
440
|
Montserrat44: Any
|
|
382
441
|
Montserrat48: Any
|
|
442
|
+
Montserrat48: Any
|
|
383
443
|
class PANEL:
|
|
384
444
|
GC9107: int
|
|
385
445
|
GC9A01: int
|
|
@@ -406,6 +466,7 @@ class UserDisplay:
|
|
|
406
466
|
def drawJpg(self, img: Any, x: int = ..., y: int = ..., maxW: int = ..., maxH: int = ..., offX: int = ..., offY: int = ..., scaleX: Any = ..., scaleY: Any = ...) -> None: ...
|
|
407
467
|
def drawLine(self, x0: int, y0: int, x1: int, y1: int, color: int = ...) -> None: ...
|
|
408
468
|
def drawPixel(self, x: int, y: int, color: int = ...) -> None: ...
|
|
469
|
+
def drawPixels(self, points: Any, color: int = ..., clear: bool = ..., background: int = ...) -> None: ...
|
|
409
470
|
def drawPng(self, img: Any, x: int = ..., y: int = ..., maxW: int = ..., maxH: int = ..., offX: int = ..., offY: int = ..., scaleX: Any = ..., scaleY: Any = ...) -> None: ...
|
|
410
471
|
def drawQR(self, text: str, x: int, y: int, w: int, version: int = ...) -> None: ...
|
|
411
472
|
def drawRawBuf(self, buf: Any, x: int, y: int, w: int, h: int, len: int, swap: bool = ...) -> None: ...
|
|
@@ -426,7 +487,7 @@ class UserDisplay:
|
|
|
426
487
|
def fontHeight(self, font: Any = ...) -> int: ...
|
|
427
488
|
def getBrightness(self) -> int: ...
|
|
428
489
|
def getColorDepth(self) -> int: ...
|
|
429
|
-
def getCursor(self) -> int: ...
|
|
490
|
+
def getCursor(self) -> tuple[int, int]: ...
|
|
430
491
|
def getEpdMode(self) -> int: ...
|
|
431
492
|
def getRotation(self) -> int: ...
|
|
432
493
|
def height(self) -> int: ...
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: m5stack-stubs
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.5.3
|
|
4
4
|
Summary: Type stubs (.pyi) for the M5Stack UIFlow2 MicroPython firmware — M5 module
|
|
5
5
|
Project-URL: Homepage, https://github.com/N0I0C0K/m5stack-stubs
|
|
6
6
|
Author: N0I0C0K
|
|
@@ -35,6 +35,12 @@ Generated from the official firmware C source by
|
|
|
35
35
|
[m5stubgen](https://github.com/N0I0C0K/m5stack-stubs). The package version tracks
|
|
36
36
|
the firmware release it was generated from.
|
|
37
37
|
|
|
38
|
+
From `2.5.3` onward, choose the package matching your firmware version, for
|
|
39
|
+
example `pip install m5stack-stubs==2.5.3`. A `.postN` suffix is a stub correction
|
|
40
|
+
for that same firmware. Legacy `0.1.x` packages were generated from `master`.
|
|
41
|
+
New official stable firmware releases are checked daily and published only
|
|
42
|
+
after the generator regression tests, type checks and package checks pass.
|
|
43
|
+
|
|
38
44
|
> Stub-only package — it ships `.pyi` files only and has no runtime effect.
|
|
39
45
|
|
|
40
46
|
## License
|
|
@@ -21,6 +21,12 @@ Generated from the official firmware C source by
|
|
|
21
21
|
[m5stubgen](https://github.com/N0I0C0K/m5stack-stubs). The package version tracks
|
|
22
22
|
the firmware release it was generated from.
|
|
23
23
|
|
|
24
|
+
From `2.5.3` onward, choose the package matching your firmware version, for
|
|
25
|
+
example `pip install m5stack-stubs==2.5.3`. A `.postN` suffix is a stub correction
|
|
26
|
+
for that same firmware. Legacy `0.1.x` packages were generated from `master`.
|
|
27
|
+
New official stable firmware releases are checked daily and published only
|
|
28
|
+
after the generator regression tests, type checks and package checks pass.
|
|
29
|
+
|
|
24
30
|
> Stub-only package — it ships `.pyi` files only and has no runtime effect.
|
|
25
31
|
|
|
26
32
|
## License
|
|
File without changes
|