Skip to main content

Type stubs (.pyi) for the M5Stack UIFlow2 MicroPython firmware — M5 module

Project description

m5stack-stubs

Type stubs (.pyi) for the M5Stack UIFlow2 MicroPython firmware, so editors (Pylance / pyright) give autocomplete and type checking for the M5 module — which is a compiled C module that no other stub package covers.

pip install m5stack-stubs

Then import M5 resolves with real method signatures and constant values:

import M5
M5.Lcd.fillRect(0, 0, 100, 50, 0xFFFF)   # fillRect(x, y, w, h, color=...) -> None
pressed: bool = M5.BtnA.isPressed()        # isPressed() -> bool
adv = M5.BOARD.M5CardputerADV              # 24

Generated from the official firmware C source by m5stubgen. The package version tracks the firmware release it was generated from.

Stub-only package — it ships .pyi files only and has no runtime effect.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

m5stack_stubs-0.1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

m5stack_stubs-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file m5stack_stubs-0.1.0.tar.gz.

File metadata

  • Download URL: m5stack_stubs-0.1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for m5stack_stubs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 538053b3ec00400a013de0f57c22d4dcfbc94904f4fc3c2987c50c162a84a94f
MD5 cdf8d3cbe80b064c1b97878a5dae70e8
BLAKE2b-256 4966ca5f77a7104de27969a625826ed601730d7b663f76a4d04f8516083a2608

See more details on using hashes here.

Provenance

The following attestation bundles were made for m5stack_stubs-0.1.0.tar.gz:

Publisher: release.yml on N0I0C0K/m5stack-stubs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file m5stack_stubs-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: m5stack_stubs-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for m5stack_stubs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba1534f3f2788a6a8745c99ea80ebac6802107f9d8d478c95c8c4a4f368132a0
MD5 ccb382cedf8ca3e8307522296fc83bb3
BLAKE2b-256 39e4bfac294d343751e5422747f1b7a8dfab22c68572ec7fd5a44bb212c5775c

See more details on using hashes here.

Provenance

The following attestation bundles were made for m5stack_stubs-0.1.0-py3-none-any.whl:

Publisher: release.yml on N0I0C0K/m5stack-stubs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page