Saravanan666/pypi-org huggingface dataset:
Package: circuitpython-laser-egismos
IntroductionDevice driver for the egismos series of lasers, available athttps://www.egismos.com/laser-measuring-optoelectronics-moduleDependenciesThis 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-laser-egismosTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-laser-egismosTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-laser-egismosInstalling 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:circupinstalllaser_egismosOr the following command to update an existing version:circupupdateUsage Exampleimporttimeimportboardimportbusioimportdigitaliofromlaser_egismosimportLaserlaser_power=digitalio.DigitalInOut(board.D10)laser_power.switch_to_output(True)uart=busio.UART(board.D8,board.D9,baudrate=9600)laser=Laser(uart)laser.set_buzzer(False)laser.set_laser(True)time.sleep(3)laser.set_laser_(False)time.sleep(0.1)print(f"Distance is{laser.distance}cm")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-lilygo-t-deck
IntroductionCircuitPython drivers for the LILYGO T-Deck peripherals.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-lilygo-t-deckTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-lilygo-t-deckTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-lilygo-t-deckInstalling 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:circupinstalllilygo_tdeckOr the following command to update an existing version:circupupdateUsage Exampleimporttimefromlilygo_tdeckimportTDeckt=TDeck()whileTrue:keypress=t.get_keypress()ifkeypress:print(keypress)time.sleep(0.1)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-lps28
IntroductionLPS28 pressure sensor drive for CircuitPythonDependenciesThis 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-lps28To install system-wide (this may be required in some cases):sudopip3installcircuitpython-lps28To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-lps28Installing 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:circupinstalllps28Or 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-mag-cal
IntroductionThis library allows you to calibrate magnetometers when used with a 3 axis accelerometer.
It is designed for use with circuitpython andulab,
but can be used in any python environment wherenumpyis present.DependenciesThis driver depends on:Adafruit CircuitPythonNumpyorulabInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-mag-calTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-mag-calTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-mag-calInstalling 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:circupinstallmag_calOr the following command to update an existing version:circupupdateUsage Examplefrommag_cal.calibrationimportCalibrationfrommag_cal.utilsimportread_fixturePATH="../tests/fixtures/cal_data/hj2.json"withopen(PATH)asf:aligned,grav,mag=read_fixture(f.read())calib=Calibration()calib.fit_ellipsoid(mag,grav)calib.fit_to_axis(aligned)calib.fit_non_linear_quick(aligned,param_count=5)#calib.fit_non_linear(aligned, param_count=3)form,ginzip(mag,grav):azimuth,inclination,roll=calib.get_angles(m,g)print(f"{azimuth:05.1f}°{inclination:+05.1f}°{roll:+04.0f}°")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-mc3479
IntroductionMC3479 Accelerometer DriverDependenciesThis 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-mc3479To install system-wide (this may be required in some cases):sudopip3installcircuitpython-mc3479To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-mc3479Installing 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:circupinstallmc3479Or the following command to update an existing version:circupupdateUsage ExampleTake a quick look to the examples folder
Package: circuitpython-MorseCode
IntroductionCircuitpython library to crete Morse codeDependenciesThis 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 ExampleSeemorsecode_simpletest.pyor the readthedocs to learn how to use the libraryContributingContributions 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-noise
IntroductionSimplex noise (like Perlin) for CircuitPythonDependenciesThis 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:circupinstallnoiseOr the following command to update an existing version:circupupdateUsage Exampleimporttimefromnoiseimportnoisei=0whileTrue:n=noise(0.02*i)i+=1# print a random terrain with asterisksprint(" "*int(max(n+1,0)*40),"*")time.sleep(0.01)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-nrf24l01
Read The DocsDocumentation for this library is hosted athttps://circuitpython-nrf24l01.rtfd.io/About this LibraryThis is a Circuitpython driver library for the nRF24L01 transceiver.Originally this code was a Micropython module written by Damien P. George
& Peter Hinch which can still be foundhereThe Micropython source has since been rewritten to expose all the nRF24L01’s
features and for Circuitpython compatible devices (including linux-based
SoC computers like the Raspberry Pi).
Modified by Brendan Doherty & Rhys Thomas.Authors: Damien P. George, Peter Hinch, Rhys Thomas, Brendan Doherty
Package: circuitpython-parse
IntroductionParse (absolute and relative) URLs.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 bundle.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-parseTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-parseTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.envsource.env/bin/activatepip3installcircuitpython-parseUsage ExampleParse a URL.url="https://docs.microsoft.com/Learn"scheme,netloc,path,params,query,fragment=parse.urlparse(url)print("Scheme",scheme)print("Netloc",netloc)print("Path",path)print("Params",params)print("Query",query)print("Fragment",fragment)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-ps2controller
IntroductionCircuitPython library to read Sony PS2 or PS1 (“PSX”) game controllersDependenciesThis 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-ps2controllerTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-ps2controllerTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-ps2controllerInstalling 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:circupinstallps2controllerOr the following command to update an existing version:circupupdateUsage Exampleimportboardfromps2controllerimportPS2Controller# one way to wire this up, for example on a Picops2=PS2Controller(dat=board.GP2,cmd=board.GP3,att=board.GP4,clk=board.GP5)print("hi! Press buttons")whileTrue:events=ps2.update()ifevents:print("events",events)print("sticks: L:",ps2.analog_left(),"R:",ps2.analog_right())WiringWiring to the PSX controller needs four GPIO pins.These can be any pins.
The wiring is:CLK pin - clock OUT to controller (blue wire)CMD pin - command data OUT to controller (orange wire)ATT pin - attention / chip select OUT to controller (yellow wire)DAT pin - data IN from controller (brown wire)GND pin - signal ground (black wire)VCC pin - +3.3V power (red wire)VCC2 pin - +7.5V power to rumble motors (optional)Here’s one way to wire that up on a Raspberry Pi Pico:(Thanks toVaneppvianandanhere/PiPyPS2for Fritzing wiring diagram)ReferencesThis library is highly inspired by theSukkoPera/PsxNewLiblibrary.
It currently has only been tested on a handful of PS1 and PS2 controllers,
but it should be easy to add any specialized controller tuning.Other resources that have been helpful:https://store.curiousinventor.com/guides/PS2/https://gist.github.com/scanlime/5042071https://gamesx.com/wiki/doku.php?id=controls:playstation_controllerhttps://github.com/SukkoPera/PsxNewLibhttps://github.com/nandanhere/PiPyPS2https://github.com/veroxzik/arduino-psx-controllerhttps://github.com/madsci1016/Arduino-PS2XDocumentationAPI 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-qmc5883l
IntroductionCircuitPython driver for the qmc5883l magnetometerDependenciesThis driver depends on:Adafruit CircuitPythonBus DeviceRegisterPlease ensure all dependencies are available on the CircuitPython filesystem.On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-qmc5883lTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-qmc5883lTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-qmc5883lInstalling 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:circupinstallqmc5883lOr the following command to update an existing version:circupupdateUsage ExampleTake a look a theqmc5883l_simpletest.pyin 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-rm3100
IntroductionDriver for the RM3100 magnetometer by PNI Sensor CorporationDependenciesThis driver depends on:Adafruit CircuitPythonBus DevicePlease 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-rm3100To install system-wide (this may be required in some cases):sudopip3installcircuitpython-rm3100To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-rm3100Installing 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:circupinstallrm3100Or the following command to update an existing version:circupupdateUsage Examples# Example using I2C and single measurement readings, no DRDY pinimporttimeimportboardimportrm3100i2c=board.I2C()rm=rm3100.RM3100_I2C(i2c,i2c_address=0x23)whileTrue:rm.start_single_reading()time.sleep(rm.get_measurement_time())print(rm.get_next_reading())# Example using SPI and a DRDY pin, using continuous readingsimportboardimportdigitalioimportrm3100spi=board.SPI()drdy_pin=digitalio.DigitalInOut(board.D3)drdy_pin.direction=digitalio.Direction.INPUTcs_pin=digitalio.DigitalInOut(board.D4)cs_pin.direction=digitalio.Direction.OUTPUTcs_pin.value=Truerm=rm3100.RM3100_SPI(spi,chip_select=cs_pin,drdy_pin=drdy_pin)rm.start_continuous_reading(1.2)# start continuous reading at 1.2Hzforiinrange(20):print(rm.get_next_reading())rm.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-rotary-slider
IntroductionDisplayio Layout Rotary Slider WidgetDependenciesThis 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-rotary_sliderTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-rotary_sliderTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-rotary_sliderInstalling 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:circupinstallrotary_sliderOr 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-ruhrohrotaryio
IntroductionPretend to berotaryiofor boards that need non-sequential pins.On RP2040-based boards like the Raspberry Pi Pico and QTPy RP2040,
if you try to use “rotaryio”
on pins whose GPIO numbers are not sequential, you will get aRuntimeError: Pins must be sequential GPIO pins.This package acts just likerotaryiobut useskeypadand some logic to read a rotary encoder.
It is not as fast or efficient asrotaryiobut it will work on RP2040 boards.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 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:circupinstallruhrohrotaryioOr the following command to update an existing version:circupupdateInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-ruhrohrotaryioTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-ruhrohrotaryioTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installcircuitpython-ruhrohrotaryioUsage Exampleimportosimporttimeimportboard# works on both QTPY M0 and QTPY RP2040ifos.uname().machine.find("rp2040")>0:# RP2040fromruhrohrotaryioimportIncrementalEncoderelse:fromrotaryioimportIncrementalEncoderencoder=IncrementalEncoder(board.A3,board.A1)whileTrue:print(encoder.position)time.sleep(0.1)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-scales
IntroductionAllows display data in a graduated levelDependenciesThis 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 se thescales_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-schedule
IntroductionReduced version of the schedule library for CircuitPythonThis library is a reduced version of the Pythonschedule
library. Credit toDan Bader
(dbader)for
this excellent library.DependenciesThis driver depends on:Adafruit CircuitPythonAdafruit CircuitPython DatetimePlease 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 PyPI
=====================On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installcircuitpython-scheduleTo install system-wide (this may be required in some cases):sudopip3installcircuitpython-scheduleTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.envsource.env/bin/activatepip3installcircuitpython-scheduleUsage Exampleimporttimeimportcircuitpython-scheduleasscheduledefgreet():print("Hello, world!")""" Note: pass the function name, like greet, not greet():"""schedule.every(10).seconds.do(greet)whileTrue:schedule.run_pending()time.sleep(1)ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.DocumentationRead themodule documentation.