Saravanan666/pypi-org huggingface dataset:
Package: circuitpython-seeed-xiao-nrf52840
IntroductionProvides access to onboard sensors and battetDependenciesThis driver depends on:Adafruit CircuitPythonAdafruit’s LSM6DS library:Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundleor individual libraries can be installed usingcircup.Installing to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstallseeed_xiao_nrf52840Or the following command to update an existing version:circupupdateUsage Exampleimportarrayimporttimeimportaudiocoreimportaudiopwmioimportboardfromseeed_xiao_nrf52840importIMU,Mic,BatterywithBattery()asbat:print(f"Charge_status:{bat.charge_status}")print(f"Voltage:{bat.voltage}")print(f"Charge_current high?:{bat.charge_current}")print("Setting charge current to high")bat.charge_current=bat.CHARGE_100MAprint(f"Charge_current high?:{bat.charge_current}")withIMU()asimu:foriinrange(5):print("Acceleration:",imu.acceleration)time.sleep(1)withMic()asmic:foriinrange(5):print(f"Start speaking in:{5-i}")time.sleep(1)b=array.array("H")foriinrange(8000):b.append(0)print("SPEAK!!!")mic.record(b,len(b))print(b)foriinrange(5):print(f"Replaying in:{5-i}")time.sleep(1)withaudiopwmio.PWMAudioOut(board.D0)asaud:print("PWM setup")sample=audiocore.RawSample(b,sample_rate=8000)print("sample ready")aud.play(sample,loop=True)print("playing")time.sleep(5)aud.stop()DocumentationAPI documentation for this library can be found onRead the Docs.For information on building library documentation, please check outthis guide.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: circuitpython-seriallcd
IntroductionCircuitPython helper library for Parallax’s serial LCDsDependenciesThis driver depends on:Adafruit CircuitPythonPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundle.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI. To install for current user:pip3installadafruit-circuitpython-seriallcdTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-seriallcdTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.envsource.env/bin/activatepip3installadafruit-circuitpython-seriallcdUsage Exampleimportseriallcdimportbusioimportboarduart=busio.UART(board.TX,None,baudrate=9600)disp=seriallcd.Display(uart)# Create the display object, passing in the UART.disp.set_backlight(True)# Turn on the backlight.disp.print("Hello CircuitPython!")# Add some text to the displayContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.DocumentationFor information on building library documentation, please check outthis guide.
Package: circuitpython-simnple-dial
IntroductionA dial gauge widget for displaying graphical information. Derived from Dial made by Kevin Matocha. Main Differences:Dial is a complete circleNeedle is a line. This line could be full or halfNeedle size could be shortened using the pad optionCan have more than one needle.Minor ticks can have their own labelsDependenciesThis driver depends on:Adafruit CircuitPythonPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundleor individual libraries can be installed usingcircup.Installing to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstallsimple_dialOr the following command to update an existing version:circupupdateUsage ExampleSee scripts in the examples directory of this repository.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: circuitpython-simple-gyro
IntroductionDisplayio Gyro representationDependenciesThis driver depends on:Adafruit CircuitPythonPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Community Bundle library and driver bundleor individual libraries can be installed usingcircup.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-simple_gyroTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-simple_gyroTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-simple_gyroInstalling to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstallsimple_gyroOr the following command to update an existing version:circupupdateUsage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: circuitpython-slider
Introductionslider widget to work with non discrete values in touch resistive screensDependenciesThis driver depends on:Adafruit CircuitPythonPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundleor individual libraries can be installed usingcircup.Usage ExamplePlease see theslider_simpletest.pyexample for initial referenceContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.DocumentationFor information on building library documentation, please check outthis guide.
Package: circuitpython-softkeyboard
IntroductionCircuitPython software defined keyboard for touch displays using displayio GridLayout.DependenciesThis driver depends on:Adafruit CircuitPythonPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundleor individual libraries can be installed usingcircup.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-softkeyboardTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-softkeyboardTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-softkeyboardInstalling to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstallsoftkeyboardOr the following command to update an existing version:circupupdateUsage ExampleSimpletest ExampleDocumentationAPI documentation for this library can be found onRead the Docs.For information on building library documentation, please check outthis guide.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: circuitpython-sparkfun-qwiicquadsolidstaterelay
IntroductionCircuitPython library for SparkFun Qwiic Quad Solid State Relay Kit (COM-16833).SparkFun Qwiic Quad Solid State Relay Kit (COM-16566)DependenciesThis driver depends on:Adafruit CircuitPythonBus DeviceSparkFun Qwiic Quad Solid State Relay Kit (COM-16566) HardwarePlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundleor individual libraries can be installed usingcircup.Installing from PyPINoteThis library is not available on PyPI yet. Install documentation is included
as a standard element. Stay tuned for PyPI availability!On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-sparkfun-qwiicquadsolidstaterelayTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-sparkfun-qwiicquadsolidstaterelayTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.envsource.env/bin/activatepip3installcircuitpython-sparkfun-qwiicquadsolidstaterelayInstalling to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstallsparkfun_qwiicquadsolidstaterelayOr the following command to update an existing version:circupupdateUsage Example""" QuadRelayTest """
# QuadRelayTest: Copyright (c) 2022 Graham Beland
#
# SPDX-License-Identifier: MIT
# import the CircuitPython board and busio libraries
import time as tm
# CircuitPython board
import board
# the sparkfun_qwiicquadsolidstaterelay
import sparkfun_qwiicquadsolidstaterelay

# Create bus object using the board's I2C port
i2c = board.I2C()

# Note: default i2c address is 8
theRelay = sparkfun_qwiicquadsolidstaterelay.Sparkfun_QwiicQuadSolidStateRelay(i2c)
print("Opened: Relay Controller")
if theRelay.connected:
    print("Relay connected. ")
    theRelay.relay_on(1)
    tm.sleep(1)
    theRelay.relay_off(1)
else:
    print("Relay does not appear to be connected. Please check wiring.")DocumentationAPI documentation for this library can be found onRead the Docs.For information on building library documentation, please check outthis guide.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: circuitpython-stts22h
IntroductionCircuitPython Driver for the STTS22H Temperature SensorDependenciesThis driver depends on:Adafruit CircuitPythonBus DeviceRegisterPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Community Bundle library and driver bundleor individual libraries can be installed usingcircup.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-stts22hTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-stts22hTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-stts22hInstalling to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstallstts22hOr the following command to update an existing version:circupupdateUsage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: circuitpython-styles
IntroductionLibrary helper to add styles to CircuitPython display functions
CircuitPython widgets supported:LabelBitmaplabelScrollingLabelProgressBarButtonOther CircuitPython Widgets in the Comunity BundleAnnotationListSelectDependenciesThis driver depends on:Adafruit CircuitPythonPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundleor individual libraries can be installed usingcircup.Usage ExampleSee the examples directory for usage examples.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.DocumentationFor information on building library documentation, please check outthis guide.
Package: circuitpython-table
IntroductionCircuitPython Library to creat tablesDependenciesThis driver depends on:Adafruit CircuitPythonPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Community Bundle library and driver bundleor individual libraries can be installed usingcircup.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-tableTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-tableTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-tableInstalling to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstalltableOr the following command to update an existing version:circupupdateUsage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: circuitpython-ticstepper
IntroductionDriver for the TIC stepper motor driversDependenciesThis driver depends on:Adafruit CircuitPythonBus DeviceRegisterPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundleor individual libraries can be installed usingcircup.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-ticstepperTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-ticstepperTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.envsource.env/bin/activatepip3installcircuitpython-ticstepperInstalling to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstallticstepperOr the following command to update an existing version:circupupdateUsage ExampleSee examples in theexamples/folderDocumentationAPI documentation for this library can be found onRead the Docs.For information on building library documentation, please check outthis guide.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: circuitpython-tmp117
IntroductionCircuitPython TMP117 Temperature Sensor Low Memory driver. This is refactor to work with a QT Py M0.
See issuehttps://github.com/adafruit/Adafruit_CircuitPython_TMP117/issues/11The work here was covered under PR#15
on the Adafruit_TMP117 Libraryhttps://github.com/adafruit/Adafruit_CircuitPython_TMP117/pull/15There were small changes after the PR, those are included here too.DependenciesThis driver depends on:Adafruit CircuitPythonBus DeviceRegisterPlease ensure all dependencies are available on the CircuitPython filesystem.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-tmp117To install system-wide (this may be required in some cases):sudopip3installcircuitpython-tmp117To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-tmp117Usage ExampleTake a look at the examples directory
Package: circuitpython-tzdb
IntroductionIANA timezones for adafruit_datetimeBuildTo regenerate the timezone database files intzdb/_zonesCreate a python>=3.9 environment:python3.9-mvenv .venvActivate the environment:source .venv/bin/activateInstall dependencies:pip install-rrequirements.txtAnd run theutils/generate_tz_db.pyscript:./utils/generate_tz_db.pyThis creates a python file in_zonesfor each timezone.
These files each contain a dictionary that maps names to utc offsets throughout
the year using python3.9’sZoneInfoThis file is included in this repository/package and is current as of 2022-05-22Seetzdb/_timezone.pyfor details on how it’s usedDependenciesThis driver depends on:Adafruit CircuitPythonPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundleor individual libraries can be installed usingcircup.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-tzdbTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-tzdbTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.envsource.env/bin/activatepip3installcircuitpython-tzdbInstalling to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstalltzdbOr the following command to update an existing version:circupupdateUsage Example#!/usr/bin/env python3# SPDX-FileCopyrightText: Copyright (c) 2022 Evin Dunn# SPDX-License-Identifier: MITfromtimeimporttimefromadafruit_datetimeimportdatetimetry:fromtzdbimporttimezoneexceptImportError:fromsysimportpathassys_pathfrompathlibimportPathsys_path.insert(0,str(Path(__file__).parent.parent))fromtzdbimporttimezonedefmain():TARGETS=["America/Chicago","America/Argentina/Buenos_Aires","Pacific/Guam","Asia/Tokyo",]# First use adafruit_ntp to fetch the current utc time & update the board's# RTCutc_now=time()utc_now_dt=datetime.fromtimestamp(utc_now)print("UTC:{}".format(utc_now_dt.ctime()))fortargetinTARGETS:localtime=utc_now_dt+timezone(target).utcoffset(utc_now_dt)print("{}:{}".format(target,localtime.ctime()))if__name__=="__main__":main()DocumentationAPI documentation for this library can be found onRead the Docs.For information on building library documentation, please check outthis guide.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: circuitpython-uboxplot
IntroductionCalculates boxplot and creates its graphical representationDependenciesThis driver depends on CircuitPython > 8.X.X RC1Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundleor individual libraries can be installed usingcircup.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-uboxplotTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-uboxplotTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-uboxplotInstalling to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstalluboxplotOr the following command to update an existing version:circupupdateUsage ExampleFor library usage please refer to the examples folder.DocumentationAPI documentation for this library can be found onRead the Docs.For information on building library documentation, please check outthis guide.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: circuitpython-uhistogram
IntroductionCircuitPython library to calculate and graph histogramsDependenciesThis driver depends on:Adafruit CircuitPythonPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundleor individual libraries can be installed usingcircup.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-uhistogramTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-uhistogramTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-uhistogramInstalling to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstalluhistogramOr the following command to update an existing version:circupupdateUsage Examplefor usage please refer to the files in the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.For information on building library documentation, please check outthis guide.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.