Saravanan666/pypi-org huggingface dataset:
Package: micropython-ruuvitag
Harvest data fromRuuviTag BLE Sensor Beaconwith MicroPython Bluetooth enabled micro controller like thepycomdevices.micropython-ruuvitag supportsData Format 2, 3, 4 and 5.This package comes with a scanner and a tracker. The scanner scans for RuuviTags in a pre defined time and return the result. The tracker continuously scans for RuuviTags and call a callback for each tag found.InstallationThe easiest way to install the package is viaupip:>>> import upip
>>> upip.install('micropython-ruuvitag')For manual installation copy theruuvitagdirectory with all files to your devicelibdirectory.Install with mpfshell$mpfshellttyUSB0-sinstall.mpfScannerRuuviTagScannerscans for RuuviTags and decode the data format. The result is a list with named tuples.Scan 10 seconds for RuuviTag sensors and print the result:fromruuvitag.scannerimportRuuviTagScannerrts=RuuviTagScanner()forruuvitaginrts.find_ruuvitags(timeout=10):print(ruuvitag)TrackerRuuviTagTrackerscans for RuuviTags, decode the data format and call a callback with a named tuple if recieved data from tag.fromruuvitag.trackerimportRuuviTagTrackerdefcb(ruuvitag):print(ruuvitag)rtt=RuuviTagTracker()rtt.track_ruuvitags(cb)Whitelist devicesYou can collect data from only the devices you want by define a whitelist with mac addresses. Other Devices then will be ignored. Whitelists can be used with RuuviTagScanner and RuuviTagTracker.whitelist=(b'aa:bb:cc:dd:ee:21',b'aa:bb:cc:dd:ee:42',)rts=RuuviTagScanner(whitelist)Blacklist persistenceIf the data from a Bluetooth device can not be decoded, the device get on a blacklist as long the MicroPython device is not resetted. For a persistent device blacklist the list should be saved and reloaded.>>> from ruuvitag import RuuviTagScanner
>>> rts = RuuviTagScanner()
>>> # add back blacklisted devices
>>> rts.blacklist = [b'aa:bb:cc:dd:ee:21', b'aa:bb:cc:dd:ee:42']
>>> # run a new scan
>>> rts.find_ruuvitags(timeout=10)
>>> # get blacklisted devices
>>> rts.blacklistNamed tuple formatsData Format 2 and 4 (Eddystone-URL)RuuviTagURL=namedtuple('RuuviTagURL',('mac','rssi','format','humidity','temperature','pressure','id',))Data Format 3 (RAWv1) and 5 (RAWv2)RuuviTagRAW=namedtuple('RuuviTagRAW',('mac','rssi','format','humidity','temperature','pressure','acceleration_x','acceleration_y','acceleration_z','battery_voltage','power_info','movement_counter','measurement_sequence',))
Package: micropython-samd-adafruit_feather_m4_express-stubs
micropython-samd-adafruit_feather_m4_express-stubsThis is a stub-only package for MicroPython.
It is intended to be installed in a projects virtual environment to allow static type checkers and intellisense features to be used while writing Micropython code.The version of this package is alligned the the version of the MicroPython firmware.Major, Minor and Patch levels are alligned to the same version as the firmware.The post release level is used to publish new releases of the stubs.ForMicropython 1.17the stubs are published as1.17.post1...1.17.post2forMicropython 1.18the stubs are published as1.18.post1...1.18.post2To install the latest stubs:pip install -I  micropython-<port>-stubswhere port is the port of the MicroPython firmware.To install the stubs for an older version, such as MicroPython 1.17:pip install micropython-stm32-stubs==1.17.*which will install the last post release of the stubs for MicroPython 1.17.As the creation of the stubs, and merging of the different types is still going though improvements, the stub packages are marked as Beta.
To upgrade stubs to the latest stubs for a specific version usepip install micropython-stm32-stubs==1.17.* --upgradeIf you have suggestions or find any issues with the stubs, please report them in theMicroPython-stubs DiscussionsFor an overview of  Micropython Stubs please see:https://micropython-stubs.readthedocs.io/en/main/List of all stubs :https://micropython-stubs.readthedocs.io/en/main/firmware_grp.htmlIncluded stubs:Merged stubs fromstubs/micropython-v1_20_0-samd-ADAFRUIT_FEATHER_M4_EXPRESS-mergedFrozen stubs fromstubs/micropython-v1_20_0-frozen/samd/GENERICCore stubs fromstubs/micropython-coreoriginFamilyPortBoardVersionDocumentationmicropython--v1.20.0Coremicropythonsamd-v1.20.0
Package: micropython-samd-adafruit_itsybitsy_m4_express-stubs
micropython-samd-adafruit_itsybitsy_m4_express-stubsThis is a stub-only package for MicroPython.
It is intended to be installed in a projects virtual environment to allow static type checkers and intellisense features to be used while writing Micropython code.The version of this package is alligned the the version of the MicroPython firmware.Major, Minor and Patch levels are alligned to the same version as the firmware.The post release level is used to publish new releases of the stubs.ForMicropython 1.17the stubs are published as1.17.post1...1.17.post2forMicropython 1.18the stubs are published as1.18.post1...1.18.post2To install the latest stubs:pip install -I  micropython-<port>-stubswhere port is the port of the MicroPython firmware.To install the stubs for an older version, such as MicroPython 1.17:pip install micropython-stm32-stubs==1.17.*which will install the last post release of the stubs for MicroPython 1.17.As the creation of the stubs, and merging of the different types is still going though improvements, the stub packages are marked as Beta.
To upgrade stubs to the latest stubs for a specific version usepip install micropython-stm32-stubs==1.17.* --upgradeIf you have suggestions or find any issues with the stubs, please report them in theMicroPython-stubs DiscussionsFor an overview of  Micropython Stubs please see:https://micropython-stubs.readthedocs.io/en/main/List of all stubs :https://micropython-stubs.readthedocs.io/en/main/firmware_grp.htmlIncluded stubs:Merged stubs fromstubs/micropython-v1_20_0-samd-ADAFRUIT_ITSYBITSY_M4_EXPRESS-mergedFrozen stubs fromstubs/micropython-v1_20_0-frozen/samd/GENERICCore stubs fromstubs/micropython-coreoriginFamilyPortBoardVersionDocumentationmicropython--v1.20.0Coremicropythonsamd-v1.20.0
Package: micropython-samd-minisam_m4-stubs
micropython-samd-minisam_m4-stubsThis is a stub-only package for MicroPython.
It is intended to be installed in a projects virtual environment to allow static type checkers and intellisense features to be used while writing Micropython code.The version of this package is alligned the the version of the MicroPython firmware.Major, Minor and Patch levels are alligned to the same version as the firmware.The post release level is used to publish new releases of the stubs.ForMicropython 1.17the stubs are published as1.17.post1...1.17.post2forMicropython 1.18the stubs are published as1.18.post1...1.18.post2To install the latest stubs:pip install -I  micropython-<port>-stubswhere port is the port of the MicroPython firmware.To install the stubs for an older version, such as MicroPython 1.17:pip install micropython-stm32-stubs==1.17.*which will install the last post release of the stubs for MicroPython 1.17.As the creation of the stubs, and merging of the different types is still going though improvements, the stub packages are marked as Beta.
To upgrade stubs to the latest stubs for a specific version usepip install micropython-stm32-stubs==1.17.* --upgradeIf you have suggestions or find any issues with the stubs, please report them in theMicroPython-stubs DiscussionsFor an overview of  Micropython Stubs please see:https://micropython-stubs.readthedocs.io/en/main/List of all stubs :https://micropython-stubs.readthedocs.io/en/main/firmware_grp.htmlIncluded stubs:Merged stubs fromstubs/micropython-v1_20_0-samd-MINISAM_M4-mergedFrozen stubs fromstubs/micropython-v1_20_0-frozen/samd/GENERICCore stubs fromstubs/micropython-coreoriginFamilyPortBoardVersionDocumentationmicropython--v1.20.0Coremicropythonsamd-v1.20.0
Package: micropython-samd-seeed_wio_terminal-stubs
micropython-samd-seeed_wio_terminal-stubsThis is a stub-only package for MicroPython.
It is intended to be installed in a projects virtual environment to allow static type checkers and intellisense features to be used while writing Micropython code.The version of this package is alligned the the version of the MicroPython firmware.Major, Minor and Patch levels are alligned to the same version as the firmware.The post release level is used to publish new releases of the stubs.ForMicropython 1.17the stubs are published as1.17.post1...1.17.post2forMicropython 1.18the stubs are published as1.18.post1...1.18.post2To install the latest stubs:pip install -I  micropython-<port>-stubswhere port is the port of the MicroPython firmware.To install the stubs for an older version, such as MicroPython 1.17:pip install micropython-stm32-stubs==1.17.*which will install the last post release of the stubs for MicroPython 1.17.As the creation of the stubs, and merging of the different types is still going though improvements, the stub packages are marked as Beta.
To upgrade stubs to the latest stubs for a specific version usepip install micropython-stm32-stubs==1.17.* --upgradeIf you have suggestions or find any issues with the stubs, please report them in theMicroPython-stubs DiscussionsFor an overview of  Micropython Stubs please see:https://micropython-stubs.readthedocs.io/en/main/List of all stubs :https://micropython-stubs.readthedocs.io/en/main/firmware_grp.htmlIncluded stubs:Merged stubs fromstubs/micropython-v1_22_1-samd-SEEED_WIO_TERMINAL-mergedCore stubs fromstubs/micropython-coreoriginFamilyPortBoardVersionDocumentationmicropython--v1.22.1
Package: micropython-samd-stubs
micropython-samd-stubsThis is a stub-only package for MicroPython.
It is intended to be installed in a projects virtual environment to allow static type checkers and intellisense features to be used while writing Micropython code.The version of this package is alligned the the version of the MicroPython firmware.Major, Minor and Patch levels are alligned to the same version as the firmware.The post release level is used to publish new releases of the stubs.ForMicropython 1.17the stubs are published as1.17.post1...1.17.post2forMicropython 1.18the stubs are published as1.18.post1...1.18.post2To install the latest stubs:pip install -I  micropython-<port>-stubswhere port is the port of the MicroPython firmware.To install the stubs for an older version, such as MicroPython 1.17:pip install micropython-stm32-stubs==1.17.*which will install the last post release of the stubs for MicroPython 1.17.As the creation of the stubs, and merging of the different types is still going though improvements, the stub packages are marked as Beta.
To upgrade stubs to the latest stubs for a specific version usepip install micropython-stm32-stubs==1.17.* --upgradeIf you have suggestions or find any issues with the stubs, please report them in theMicroPython-stubs DiscussionsFor an overview of  Micropython Stubs please see:https://micropython-stubs.readthedocs.io/en/main/List of all stubs :https://micropython-stubs.readthedocs.io/en/main/firmware_grp.htmlIncluded stubs:Merged stubs fromstubs/micropython-v1_22_1-samd-SEEED_WIO_TERMINAL-mergedCore stubs fromstubs/micropython-coreoriginFamilyPortBoardVersionDocumentationmicropython--v1.22.1
Package: micropython-scd30
Sensirion SCD30 CO² Sensor I2C driver for MicroPythonSensirion SCD30 is a CO², Humidity and Temperature sensor on a module. This is
a I2C driver written in Python 3 for MicroPython.Getting StartedPrerequisitesSensirion SCD30 Sensor ModuleMicroPython board with I2C interfaceWiringWire the I2C bus to the I2C bus on your MicroPython board. This is an example
using the Pyboard D:PyboardSCD30X15 (3V3)VDDX14 (GND)GNDX9TX/SCLX10RX/SDAUsageThis example reads the measurements in a continous loop:import time
from machine import I2C, Pin
from scd30 import SCD30

i2cbus = I2C(1)
scd30 = SCD30(i2c, 0x61)

while True:
    # Wait for sensor data to be ready to read (by default every 2 seconds)
    while scd30.get_status_ready() != 1:
        time.sleep_ms(200)
    scd30.read_measurement()Note that the CO² sensor needs some time to stabilize. Therefor the sensor
should be kept powered to achieve a reasonable measurement interval (e.g. <5
minutes). To save power the sensors measurement inverval can be tweaked. See
also theLow Power Mode for SCD30application note.CalibrationThe CO² sensor has two modes of calibration: FRC (Forced Recalibration) or ASC
(Automatic Self-Calibration). This only describes the former.Essentially the sensor is already calibrated at factory. However, when setting a
new measurement interval recalibration might be necessary. The process is to
bring the sensor into a controlled environment (e.g. outside) and set the known
value at that environment (e.g. 400ppm). From what I understand ASC does
essentially the same, just assumes that the lowest values over a certain periode
are "outside values"...Also note that the temperature sensor suffers from heating effects on the PCB.
When the sensor operates in 2 second interval the heating is about 3°C. I
usually run the sensor at 30 seconds interval and observed a heating of 2°C. The
offset is subtracted from the measured temperature! To set a new offset, take
the old offset into account!Built WithMicroPythonSCD30 Sensor ModuleLicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: micropython-sched
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-secrets
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-selectors
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-servo
DescriptionA micropython library to control rc servos in a tidy way.This uses hardware PWM as an efficient way to generate the ouput signal.
But therefore servos need to be connected to pins with PWM functionallity.The servos can be calibrated using 2 points (min / max position).
The default values should work for most servos, but won't set the servo to the exact position, as these values are different for each servo model.ExamplesMove servoimporttimefromservoimportServomy_servo=Servo(pin_id=28)my_servo.write(30)time.sleep(2.0)my_servo.write(60)time.sleep(2.0)my_servo.write(90)APIclass Servo(pin_id,min_us=544.0,max_us=2400.0,min_deg=0.0,max_deg=180.0,freq=50)pin_id: id of the pin connected to the servomin_us: minimal pulse width (calibration point 1 / there is no clipping if you try to set the servo to a lower value)max_us: maximal pulse width (calibration point 2 / there is no clipping if you try to set the servo to a higher value)min_deg: minimal position in degrees (calibration point 1 / there is no clipping if you try to set the servo to a lower value)max_deg: maximal position in degrees (calibration point 2 / there is no clipping if you try to set the servo to a higher value)write(deg)move the servo to the given positiondeg: Position in degreesread()returns the position last set in degreeswrite_rad(rad)move the servo to the given positionrad: Position in radiansread_rad()returns the position last set in radianswrite_us(us)set the pulse width for the servous: Pulse width in usread_us()returns the last set puls widthoff()disables the output
Package: micropython-sgp40
Sensirion SGP40 VOC Sensor I2C driver for MicroPythonSensirion SGP40 is a digital VOC (volatile organic compound) sensor. This
is a I2C driver written in Python 3 for MicroPython.Getting StartedPrerequisitesSensirion SGP40 Sensor ModuleMicroPython board with I2C interfaceWiringWire the I2C bus to the I2C bus on your MicroPython board. This is an example
using the Pyboard D:PyboardSGP40X15 (3V3)VDDX14 (GND)GNDX9SCLX10SDAUsageThis example reads the measurements in a continous loop:import time
from machine import I2C, Pin
from sgp40 import SGP40

i2cbus = I2C(1)
sgp40 = SGP40(i2c, 0x59)

while True:
    sgp40.measure_raw()
    time.sleep(1)This returns raw data from the sensor. The data is meant to be processed by
the Sensirion specific VOC Algorithm, which returns air quality reflected by
an index.Built WithMicroPythonSGP40 Sensor ModuleLicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: micropython-shelve
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-shlex
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-sht20
IntroductionMicroPython Driver for the Sensirion SHT20 Temperature SensorInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_SHT20To install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_SHT20Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_SHT20/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_SHT20/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-sht20To install system-wide (this may be required in some cases):sudopip3installmicropython-sht20To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-sht20Usage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-sht4x
IntroductionMicroPython Driver fot the Sensirion Temperature and Humidity SHT40 and SHT45 SensorInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_SHT4XTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_SHT4XInstalling Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_SHT4X/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_SHT4X/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-sht4xTo install system-wide (this may be required in some cases):sudopip3installmicropython-sht4xTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-sht4xUsage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-shtc3
IntroductionMicroPython Driver for the Sensirion SHTC3 Temperature and Humidity SensorInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_SHTC3To install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_SHTC3Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_SHTC3/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_SHTC3/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-shtc3To install system-wide (this may be required in some cases):sudopip3installmicropython-shtc3To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-shtc3Usage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-si7021
IntroductionMicroPython Library for the the Temperature and Humidity SI7021 SensorInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_SI7021To install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_SI7021Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_SI7021/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_SI7021/examples.jsonInstallationOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installmicropython-si7021To install system-wide (this may be required in some cases):sudopip3installmicropython-si7021To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-si7021DocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-simple-keypad
MicroPython library for interfacing with a keypad matrixFeatureSupports any keypad matrix configuration.Easily customizable for different keypad layouts.Provides exception handling for error management.Example UsageExample for 4x4 keypad metrix on MicroPython esp32.frommachineimportPinfromkeypadimportKeypadfromtimeimportsleep# Define GPIO pins for rowsrow_pins=[Pin(25),Pin(26),Pin(27),Pin(14)]# Define GPIO pins for columnscolumn_pins=[Pin(23),Pin(22),Pin(19),Pin(18)]# Define keypad layoutkeys=[['1','2','3','A'],['4','5','6','B'],['7','8','9','C'],['*','0','#','D']]keypad=Keypad(row_pins,column_pins,keys)whileTrue:key_pressed=keypad.read_keypad()ifkey_pressed:print("Key pressed:",key_pressed)sleep(0.1)# debounce and delay
Package: micropython-sitecustomize
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.