m5stack-stubs 0.1.0__tar.gz → 0.1.1__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-0.1.1}/M5.pyi +70 -8
- {m5stack_stubs-0.1.0 → m5stack_stubs-0.1.1}/PKG-INFO +2 -2
- {m5stack_stubs-0.1.0 → m5stack_stubs-0.1.1}/pyproject.toml +1 -1
- {m5stack_stubs-0.1.0 → m5stack_stubs-0.1.1}/.gitignore +0 -0
- {m5stack_stubs-0.1.0 → m5stack_stubs-0.1.1}/README.md +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 master @
|
|
7
|
+
Firmware: uiflow-micropython master @ 3d7741a57f
|
|
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
|
|
@@ -293,6 +322,7 @@ class BOARD:
|
|
|
293
322
|
M5NanoC6: int = 140
|
|
294
323
|
M5Paper: int = 7
|
|
295
324
|
M5PaperColor: int = 28
|
|
325
|
+
M5PaperDIY: int = 34
|
|
296
326
|
M5PaperMono: int = 29
|
|
297
327
|
M5PaperS3: int = 19
|
|
298
328
|
M5PowerHub: int = 146
|
|
@@ -304,10 +334,13 @@ class BOARD:
|
|
|
304
334
|
M5StamPLC: int = 21
|
|
305
335
|
M5StampC3: int = 134
|
|
306
336
|
M5StampC3U: int = 135
|
|
337
|
+
M5StampC5: int = 153
|
|
338
|
+
M5StampC6: int = 154
|
|
307
339
|
M5StampP4: int = 150
|
|
308
340
|
M5StampPico: int = 133
|
|
309
341
|
M5StampS3: int = 136
|
|
310
342
|
M5StampS3Bat: int = 149
|
|
343
|
+
M5StampS3Mini: int = 155
|
|
311
344
|
M5Station: int = 9
|
|
312
345
|
M5StickC: int = 3
|
|
313
346
|
M5StickCPlus: int = 4
|
|
@@ -315,8 +348,10 @@ class BOARD:
|
|
|
315
348
|
M5StickS3: int = 26
|
|
316
349
|
M5StopWatch: int = 30
|
|
317
350
|
M5Tab5: int = 22
|
|
351
|
+
M5Tab5X: int = 35
|
|
318
352
|
M5TimerCam: int = 132
|
|
319
353
|
M5Tough: int = 8
|
|
354
|
+
M5ToughC5: int = 33
|
|
320
355
|
M5UnitC6L: int = 25
|
|
321
356
|
M5UnitGLASS: int = 196
|
|
322
357
|
M5UnitGLASS2: int = 197
|
|
@@ -355,31 +390,57 @@ class UserDisplay:
|
|
|
355
390
|
EPD_TEXT: int = 2
|
|
356
391
|
class FONTS:
|
|
357
392
|
ASCII7: Any
|
|
393
|
+
ASCII7: Any
|
|
394
|
+
AlibabaPuHuiTiCN24: Any
|
|
358
395
|
AlibabaPuHuiTiCN24: Any
|
|
359
396
|
AlibabaSansJA24: Any
|
|
397
|
+
AlibabaSansJA24: Any
|
|
398
|
+
AlibabaSansKR24: Any
|
|
360
399
|
AlibabaSansKR24: Any
|
|
361
400
|
DejaVu12: Any
|
|
401
|
+
DejaVu12: Any
|
|
402
|
+
DejaVu18: Any
|
|
362
403
|
DejaVu18: Any
|
|
363
404
|
DejaVu24: Any
|
|
405
|
+
DejaVu24: Any
|
|
364
406
|
DejaVu40: Any
|
|
407
|
+
DejaVu40: Any
|
|
408
|
+
DejaVu56: Any
|
|
365
409
|
DejaVu56: Any
|
|
366
410
|
DejaVu72: Any
|
|
411
|
+
DejaVu72: Any
|
|
367
412
|
DejaVu9: Any
|
|
413
|
+
DejaVu9: Any
|
|
414
|
+
EFontCN24: Any
|
|
368
415
|
EFontCN24: Any
|
|
369
416
|
EFontJA24: Any
|
|
417
|
+
EFontJA24: Any
|
|
370
418
|
EFontKR24: Any
|
|
419
|
+
EFontKR24: Any
|
|
420
|
+
Montserrat12: Any
|
|
371
421
|
Montserrat12: Any
|
|
372
422
|
Montserrat14: Any
|
|
423
|
+
Montserrat14: Any
|
|
424
|
+
Montserrat16: Any
|
|
373
425
|
Montserrat16: Any
|
|
374
426
|
Montserrat18: Any
|
|
427
|
+
Montserrat18: Any
|
|
428
|
+
Montserrat20: Any
|
|
375
429
|
Montserrat20: Any
|
|
376
430
|
Montserrat22: Any
|
|
431
|
+
Montserrat22: Any
|
|
377
432
|
Montserrat24: Any
|
|
433
|
+
Montserrat24: Any
|
|
434
|
+
Montserrat30: Any
|
|
378
435
|
Montserrat30: Any
|
|
379
436
|
Montserrat36: Any
|
|
437
|
+
Montserrat36: Any
|
|
380
438
|
Montserrat40: Any
|
|
439
|
+
Montserrat40: Any
|
|
440
|
+
Montserrat44: Any
|
|
381
441
|
Montserrat44: Any
|
|
382
442
|
Montserrat48: Any
|
|
443
|
+
Montserrat48: Any
|
|
383
444
|
class PANEL:
|
|
384
445
|
GC9107: int
|
|
385
446
|
GC9A01: int
|
|
@@ -406,6 +467,7 @@ class UserDisplay:
|
|
|
406
467
|
def drawJpg(self, img: Any, x: int = ..., y: int = ..., maxW: int = ..., maxH: int = ..., offX: int = ..., offY: int = ..., scaleX: Any = ..., scaleY: Any = ...) -> None: ...
|
|
407
468
|
def drawLine(self, x0: int, y0: int, x1: int, y1: int, color: int = ...) -> None: ...
|
|
408
469
|
def drawPixel(self, x: int, y: int, color: int = ...) -> None: ...
|
|
470
|
+
def drawPixels(self, points: Any, color: int = ..., clear: bool = ..., background: int = ...) -> None: ...
|
|
409
471
|
def drawPng(self, img: Any, x: int = ..., y: int = ..., maxW: int = ..., maxH: int = ..., offX: int = ..., offY: int = ..., scaleX: Any = ..., scaleY: Any = ...) -> None: ...
|
|
410
472
|
def drawQR(self, text: str, x: int, y: int, w: int, version: int = ...) -> None: ...
|
|
411
473
|
def drawRawBuf(self, buf: Any, x: int, y: int, w: int, h: int, len: int, swap: bool = ...) -> None: ...
|
|
@@ -426,7 +488,7 @@ class UserDisplay:
|
|
|
426
488
|
def fontHeight(self, font: Any = ...) -> int: ...
|
|
427
489
|
def getBrightness(self) -> int: ...
|
|
428
490
|
def getColorDepth(self) -> int: ...
|
|
429
|
-
def getCursor(self) -> int: ...
|
|
491
|
+
def getCursor(self) -> tuple[int, int]: ...
|
|
430
492
|
def getEpdMode(self) -> int: ...
|
|
431
493
|
def getRotation(self) -> int: ...
|
|
432
494
|
def height(self) -> int: ...
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: m5stack-stubs
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
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
|
|
File without changes
|
|
File without changes
|