Saravanan666/pypi-org huggingface dataset:
Package: micropython-lsm6dsox
IntroductionMicroPython Library for the ST LSM6DSOX accelerometer/gyro SensorInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_LSM6DSOXTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_LSM6DSOXInstalling Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_LSM6DSOX/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_LSM6DSOX/examples.jsonInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installmicropython-lsm6dsoxTo install system-wide (this may be required in some cases):sudopip3installmicropython-lsm6dsoxTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-lsm6dsoxUsage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-lzma
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-mailbox
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-mailcap
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-_markupbase
This is a module ported from CPython standard library to be compatible with
MicroPython interpreter. Usually, this means applying small patches for
features not supported (yet, or at all) in MicroPython. Sometimes, heavier
changes are required. Note that CPython modules are written with availability
of vast resources in mind, and may not work for MicroPython ports with
limited heap. If you are affected by such a case, please help reimplement
the module from scratch.
Package: micropython-marshal
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-math
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-max7219
MicroPython Max7219 8x8 LED MatrixA MicroPython library for the MAX7219 8x8 LED matrix driver using the SPI interface. Supporting custom fonts and cascading matrices.FeaturesCascading matrices togetherCustom font supportExtends theFrameBufferclassRemoves the need to specify offset for text methodExtendableExamplesRaspberry Pi PicoPicomax721940 (VBUS)VCC 5V38 (GND)GND5 (GP3)DIN7 (GP5)CS4 (GP2)CLKfrommachineimportPin,SPIfrommax7219importMatrix8x8spi=SPI(0,baudrate=10000000,polarity=1,phase=0,sck=Pin(2),mosi=Pin(3))ss=Pin(5,Pin.OUT)display=Matrix8x8(spi,ss,4)# change brightness 1-15display.brightness(5)# clear displaydisplay.zero()display.show()# show text using FrameBuffer's fontdisplay.text("CODE")display.show()DocsFor any change to theFrameBufferto appear, call the.show()methodYou may have to add delays when calling methods, these are documented in the datasheetTested on 1.19.1Display Textdisplay=Matrix8x8(...)display.zero()display.text("HI!")display.show()Custom FontsCustom fonts (glyphs) can be provided, each glyph must be 8x8. Missing characters will use default characters fromFrameBuffer.GLYPHS={"X":[[0,0,0,0,0,0,0,0],[0,1,0,0,0,0,1,0],[0,0,1,0,0,1,0,0],[0,0,0,1,1,0,0,0],[0,0,0,1,1,0,0,0],[0,0,1,0,0,1,0,0],[0,1,0,0,0,0,1,0],[0,0,0,0,0,0,0,0],],}display=Matrix8x8(...)display.text_from_glyph("X",GLYPHS)Shutdown / WakeShutting down and waking up the display is supported. This should allow a device to consume just 150μA when it's not needed. When the display is woken from shutdown the previous display should appear.# shutdown displaydisplay.shutdown()# wake from shutdowndisplay.wake()Test ModeTest mode will enable all pixels, shutdown mode has no effect when testing mode is enabled.# enable test modedisplay.test()# disable test modedisplay.test(False)ExtendingScrolling TextAlthough not built-in you could add scrolling text like shown in the following example:fromutimeimportsleep_msfrommax7219importMatrix8x8classMatrix8x8Ext(Matrix8x8):defscroll_text(self,s,ms_delay=100):s_width=len(s)*8n_pixels=self.num*8whileTrue:forxinrange(n_pixels,-s_width,-1):self.zero()self.text(s,x)self.show()sleep_ms(ms_delay)returns_widthAttributionOriginal code by@mcauserData-SheetLicenseLicensed under theMIT License, found inLICENSE.txt.
Package: micropython-mc3479
IntroductionMicroPython Driver for the MC3479 AccelerometerInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_MC3479To install directly using a WIFI capable boardmip.install("github:jposada202020/MicroPython_MC3479")Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_MC3479/examples.jsonTo install directly using a WIFI capable boardmip.install("github:jposada202020/MicroPython_MC3479/examples.json")InstallationOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installmicropython-mc3479To install system-wide (this may be required in some cases):sudopip3installmicropython-mc3479To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-mc3479
Package: micropython-mcp9808
IntroductionMicroPython Driver for the Microchip MCP9808 Temperature SensorInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_MCP9808To install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MCP9808Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_MCP9808/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MCP9808/examples.jsonInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installmicropython-mcp9808To install system-wide (this may be required in some cases):sudopip3installmicropython-mcp9808To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-mcp9808Usage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-md5
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-mdns
Micropython MDNSA pure Python implementation ofMDNSand theService Discoveryprotocol over MDNS
forMicroPython.Intended AudienceYou should not use this library if you "just" require MDNS A record lookup and Host annoucement if there is already baked in support in your MicroPython distribution.
This is for example the case with the default ESP32 MicroPython distribution since v1.12. This will be in all cases more resource efficient.If you, however, require additional functionality like Service Discovery and Annoucement, you should use this library. It supports all functionality of existing
basic MDNS implementations plus these features. You will not loose any functionality.InstallationThe library is available on PyPi and can be installed via upip.importupipupip.install("micropython-mdns")Alternatively you can also use the newmippackage manager:importmipmip.install("github:cbrand/micropython-mdns")For using this library, native C type implementations of MDNS which use the MDNS service port need to be disabled. For example, this project has been developed
on the ESP32 which MicroPython implementation per default has a basic MDNS implementation available. This does only support local A record lookups and A record
responding of its own host address.Thereleases pageon this project publishes a firmware.mp.1.13.bin which is MicroPython 1.13 with MDNS disabled as well as a firmware.mp.1.15.bin for MicroPython 1.15 in each release for easy usage. Both can also be built when
having docker locally installed by running in the console the build command:makebuildIndividually it is also possible to build the desired version via:makecompile-micropython-1-14
makecompile-micropython-1-15
makecompile-micropython-1-16
makecompile-micropython-1-17
makecompile-micropython-1-18
makecompile-micropython-1-19
makecompile-micropython-1-20Refer to theconfigdirectory to see the configuration files when baking this into your own MicroPython ESP32 build.Other MicroPython implementations might not require any changes inside of the firmware.UsageThe library requiresuasyncioto function. All handling is done asynchronously.Examples on how to utilize the libraries can be found in theexamplesfolder.ReferenceA basic API reference for the public API is inside of theREFERENCE.md.CaveatsDepending on your MicroPython implementation, you must disable MDNS in the firmware.Currently no support for IPv6 is implemented.Depending how chatty the network is, service responders and discovery might require a lot of memory. If the memory is filled by the buffer of the underlying socket,the socket is closed and reopenedwhich looses data. It, however, seems to work fine enough in tests on an ESP32 without external memory. Depending on the project size, a module with external RAM might be advisable.LicenseThe library is published under theMITlicense.
Package: micropython-mimetypes
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-mlx90393
IntroductionMicroPython Driver for the MLX90393 SensorInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_MLX90393To install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MLX90393Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_MLX90393/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MLX90393/examples.jsonInstallationOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installmicropython-mlx90393To install system-wide (this may be required in some cases):sudopip3installmicropython-mlx90393To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-mlx90393
Package: micropython-mma8451
IntroductionMicroPython module for the MMA8451 3 axis accelerometerInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_MMA8451To install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MMA8451Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_MMA8451/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MMA8451/examples.jsonInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installmicropython-mma8451To install system-wide (this may be required in some cases):sudopip3installmicropython-mma8451To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-mma8451Usage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-mma8452q
IntroductionMicroPython Drtiver for the NXP MMA8452Q AccelerometerInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_MMA8452QTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MMA8452QInstalling Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_MMA8452Q/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MMA8452Q/examples.jsonInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installmicropython-mma8452qTo install system-wide (this may be required in some cases):sudopip3installmicropython-mma8452qTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-mma8452qUsage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-mmap
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-mmc5603
IntroductionMicroPython driver for the Memsic MMC5603 MagnetometerInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_MMC5603To install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MMC5603Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_MMC5603/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MMC5603/examples.jsonInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installmicropython-mmc5603To install system-wide (this may be required in some cases):sudopip3installmicropython-mmc5603To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-mmc5603Usage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-mmc5983
IntroductionMicroPython Library for the Memsic MMC5983 MagnetometerInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_MMC5983To install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MMC5983Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_MMC5983/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MMC5983/examples.jsonInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installmicropython-mmc5983To install system-wide (this may be required in some cases):sudopip3installmicropython-mmc5983To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-mmc5983Usage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-mmr902
IntroductionMicroPython Driver fro the Mitsumi MMR920 Micro Pressure SensorInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_MMR920To install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MMR920Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_MMR920/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MMR920/examples.jsonInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installmicropython-mmr920To install system-wide (this may be required in some cases):sudopip3installmicropython-mmr920To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-mmr920Usage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-modulefinder
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-motor
IntroductionMicroPython Helpers for controlling PWM based motors and servos This has been adapted to use in the
Raspberry Pi Pico from the excellent Adafruit_CircuitPython_Motor Library here:https://github.com/adafruit/Adafruit_CircuitPython_MotorThis library can work with other MCU (Not tested) that used the following PWM methods:freqduty_u16Installing with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_MOTORTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MOTORInstalling Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_MOTOR/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MOTOR/examples.jsonInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installmicropython-motorTo install system-wide (this may be required in some cases):sudopip3installmicropython-motorTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-motorUsage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-mpl3115a2
IntroductionMicroPython driver for the NXP MPL3115A2 Pressure and Temperature sensorInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_MPL3115A2To install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MPL3115A2Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_MPL3115A2/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MPL3115A2/examples.jsonInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installmicropython-mpl3115a2To install system-wide (this may be required in some cases):sudopip3installmicropython-mpl3115a2To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-mpl3115a2Usage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-mpu6886
[WIP] MicroPython MPU-6886 I2C driverThe MPU-6886 is a 6-axis motion tracking device that combines a 3-axis gyroscope and a 3-axis accelerometer.UsageSimple test with never ending loop.importutimefrommachineimportI2C,Pinfrommpu6886importMPU6886i2c=I2C(scl=Pin(22),sda=Pin(21))sensor=MPU6886(i2c)print("MPU6886 id: "+hex(sensor.whoami))whileTrue:print(sensor.acceleration)print(sensor.gyro)print(sensor.temperature)utime.sleep_ms(1000)By default the library returns 3-tuple of X, Y, Z axis values for acceleration and gyroscope. Default units arem/s^2,rad/sand°C. It is possible to also get acceleration values ingand gyro valuesdeg/s. See the example below.importutimefrommachineimportI2C,Pinfrommpu6886importMPU6886,SF_G,SF_DEG_Si2c=I2C(scl=Pin(22),sda=Pin(21))sensor2=MPU6886(i2c,accel_sf=SF_G,gyro_sf=SF_DEG_S)print("MPU6886 id: "+hex(sensor.whoami))whileTrue:print(sensor.acceleration)print(sensor.gyro)print(sensor.temperature)utime.sleep_ms(1000)More realistic example usage with timer. If you getOSError: 26ori2c driver install errorafter soft reboot do a hard reboot.importmicropythonfrommachineimportI2C,Pin,Timerfrommpu6886importMPU6886micropython.alloc_emergency_exception_buf(100)i2c=I2C(scl=Pin(22),sda=Pin(21))sensor=MPU6886(i2c)defread_sensor(timer):print(sensor.acceleration)print(sensor.gyro)print(sensor.temperature)print("MPU6886 id: "+hex(sensor.whoami))timer_0=Timer(0)timer_0.init(period=1000,mode=Timer.PERIODIC,callback=read_sensor)Gyro CalibrationTODOLicenseThe MIT License (MIT). Please seeLicense Filefor more information.