Saravanan666/pypi-org huggingface dataset:
Package: adafruit-circuitpython-tfmini
IntroductionA CircuitPython/Python library for Benewake’s TF mini distance sensorDependenciesThis 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-tfminiTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-tfminiTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-tfminiUsage Exampleimporttimeimportboard# comment this out if using pyserialimportbusio# comment this out if using pyserialimportadafruit_tfmini# Use hardware uartuart=busio.UART(board.TX,board.RX)# Or, you can use pyserial on any computer#import serial#uart = serial.Serial("/dev/ttyS2", timeout=1)# Simplest use, connect with the uart bus objecttfmini=adafruit_tfmini.TFmini(uart)# You can put in 'short' or 'long' distance modetfmini.mode=adafruit_tfmini.MODE_SHORTprint("Now in mode",tfmini.mode)whileTrue:print("Distance:%dcm (strength%d, mode%x)"%(tfmini.distance,tfmini.strength,tfmini.mode))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: adafruit-circuitpython-thermal-printer
IntroductionCircuitPython module for control of various small serial thermal printers.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 PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI. To install for current user:pip3installadafruit-circuitpython-thermal_printerTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-thermal_printerTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-thermal_printerUsage ExampleSee examples/thermal_printer_simpletest.py for a demo of basic printer usage.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: adafruit-circuitpython-thermistor
IntroductionThermistors are resistors that predictably change resistance with temperature.
This driver uses an analog reading and math to determine the temperature. They
are commonly used as a low cost way to measure temperature.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 PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI. To install for current user:pip3installadafruit-circuitpython-thermistorTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-thermistorTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-thermistorUsage ExampleThe hardest part of using the driver is its initialization. Here is an example
for the thermistor on the Circuit Playground and Circuit Playground Express. Its
a 10k series resistor, 10k nominal resistance, 25 celsius nominal temperature and
3950 B coefficient.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: adafruit-circuitpython-ticks
IntroductionWork with intervals and deadlines in millisecondsDependenciesThis 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:pip3installadafruit-circuitpython-ticksTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-ticksTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-ticksInstalling 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:circupinstalladafruit_ticksOr the following command to update an existing version:circupupdateUsage Examplefromadafruit_ticksimportticks_ms,ticks_add,ticks_less# Wait for 100ms to passdeadline=ticks_add(ticks_ms(),100)whileticks_less(ticks_ms(),deadline):passDocumentationAPI 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: adafruit-circuitpython-tinylora
IntroductionWARNING: This library is not compatible with The Things Network v3 stack. Since TTN has fully migrated to v3, this library is not longer able to communicate with TTN.LoRaWAN/The Things Network V2, for CircuitPython.DependenciesThis 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 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-tinyloraTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-tinyloraTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-tinyloraUsage ExampleUsage is described in thelearn guide for this library.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.LicenseThis library was written by ClemensRiederer. We’ve converted it to work with Adafruit CircuitPython and made
changes so it works with the Raspberry Pi and Adafruit Feather M0/M4. We’ve added examples for using this library
to transmit data and sensor data to The Things Network.This open source code is licensed under the LGPL license (see LICENSE for details).
Package: adafruit-circuitpython-tla202x
IntroductionLibrary for the TI TLA202x 12-bit ADCsDependenciesThis 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 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-tla202xTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-tla202xTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-tla202xUsage Exampleimportboardimportbusiofromadafruit_tla202ximportTLA2024i2c=busio.I2c(board.SCL,board.SDA)tla=TLA2024(i2c)forchannelinrange(4):tla.input_channel=channelprint("Channel%d:%2fV"%(channel,tla.voltage))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: adafruit-circuitpython-tlc5947
IntroductionCircuitPython module for the TLC5947 12-bit 24 channel LED PWM driver.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 PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI. To install for current user:pip3installadafruit-circuitpython-tlc5947To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-tlc5947To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-tlc5947Usage ExampleSee examples/tlc5947_simpletest.py for a demo of the usage.See examples/tlc5947_chain.py for a demo of chained driver usage.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: adafruit-circuitpython-tlc59711
IntroductionCircuitPython module for the TLC59711 16-bit 12 channel LED PWM driver.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 PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI. To install for current user:pip3installadafruit-circuitpython-tlc59711To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-tlc59711To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-tlc59711Usage ExampleSee examples/tlc59711_simpletest.py for a demo of the usage.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: adafruit-circuitpython-tlv493d
IntroductionCircuitPython helper library for the TLV493D 3-axis magnetometerDependenciesThis 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 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-tlv493dTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-tlv493dTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-tlv493dUsage Exampleimporttimeimportboardimportadafruit_tlv493di2c=board.I2C()# uses board.SCL and board.SDAtlv=adafruit_tlv493d.TLV493D(i2c)whileTrue:print("X:%s, Y:%s, Z:%suT"%tlv.magnetic)time.sleep(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: adafruit-circuitpython-tmp006
IntroductionCircuitPython driver for the TMP006 contactless IR thermometer.DependenciesThis 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 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-tmp006To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-tmp006To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-tmp006Usage ExampleEnsure your device works with the simple test in 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: adafruit-circuitpython-tmp007
IntroductionCircuitPython driver for the TMP007 contactless IR thermometerDependenciesThis 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 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-tmp007To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-tmp007To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-tmp007Usage 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: adafruit-circuitpython-tmp117
IntroductionCircuitPython library for the TI TMP117 Temperature sensorWARNING: Library may not run on some boards with less RAM such as boards using the SAMD21DependenciesThis 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 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-tmp117To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-tmp117To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-tmp117Usage Exampleimporttimeimportboardimportadafruit_tmp117i2c=board.I2C()# uses board.SCL and board.SDAtmp117=adafruit_tmp117.TMP117(i2c)whileTrue:print("Temperature:%.2fdegrees C"%tmp117.temperature)time.sleep(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: adafruit-circuitpython-touchscreen
IntroductionCircuitPython library for 4-wire resistive touchscreensDependenciesThis 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-touchscreenTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-touchscreenTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-touchscreenUsage Exampleimportboardimportadafruit_touchscreen# These pins are used as both analog and digital!# XR, XL and YU must be analog and digital capable.# YD just needs to be digital.ts=adafruit_touchscreen.Touchscreen(board.TOUCH_XL,board.TOUCH_XR,board.TOUCH_YD,board.TOUCH_YU)whileTrue:p=ts.touch_pointifp:print(p)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: adafruit-circuitpython-tpa2016
IntroductionCircuitPython driver for TPA2016 Class D Amplifier.DependenciesThis 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 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-tpa2016To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-tpa2016To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-tpa2016Usage Exampleimportadafruit_tpa2016importbusioimportboardi2c=busio.I2C(board.SCL,board.SDA)tpa=adafruit_tpa2016.TPA2016(i2c)tpa.fixed_gain=-16DocumentationAPI 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: adafruit-circuitpython-trellis
IntroductionThis library will allow you to control the LEDs and read button presses on theAdafruit Trellis
Board. It will work with a single Trellis board, or
with a matrix of up to 8 Trellis boards.For more details, see theAdafruit Trellis Learn Guide.DependenciesThis driver depends on:Adafruit CircuitPython 2.0.0+Bus DevicePlease 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-trellisTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-trellisTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-trellisUsage ExampleSeeexamples/trellis_simpletest.pyfor full
usage example.importtimeimportbusiofromboardimportSCL,SDAfromadafruit_trellisimportTrellis# Create the I2C interfacei2c=busio.I2C(SCL,SDA)# Create a Trellis object for each boardtrellis=Trellis(i2c)# 0x70 when no I2C address is supplied# Turn on every LEDprint('Turning all LEDs on...')trellis.led.fill(True)time.sleep(2)# Turn off every LEDprint('Turning all LEDs off...')trellis.led.fill(False)time.sleep(2)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: adafruit-circuitpython-trellism4
IntroductionThis high level library provides objects that represent Trellis M4 hardware.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 PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI. To install for current user:pip3installadafruit-circuitpython-trellism4To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-trellism4To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-trellism4Usage ExampleThis example prints out the coordinates of a button each time it is pressed and released:importtimeimportadafruit_trellism4trellis=adafruit_trellism4.TrellisM4Express()current_press=set()whileTrue:pressed=set(trellis.pressed_keys)forpressinpressed-current_press:print("Pressed:",press)forreleaseincurrent_press-pressed:print("Released:",release)time.sleep(0.08)current_press=pressedDocumentationAPI 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: adafruit-circuitpython-tsc2007
IntroductionPython library for TSC2007 resistive touch screen driverDependenciesThis 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.Works with the Adafruit TSC2007 resistive touch driver.Purchase one from the Adafruit shopInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installadafruit-circuitpython-tsc2007To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-tsc2007To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-tsc2007Installing 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:circupinstalladafruit_tsc2007Or the following command to update an existing version:circupupdateUsage Exampleimportboardimportadafruit_tsc2007# Use for I2Ci2c=board.I2C()irq_dio=None# don't use an irq pin by default# uncomment for optional irq input pin so we don't continuously poll the I2C for touches# irq_dio = digitalio.DigitalInOut(board.A0)tsc=adafruit_tsc2007.TSC2007(i2c,irq=irq_dio)whileTrue:iftsc.touched:point=tsc.touchifpoint["pressure"]<100:# ignore touches with no 'pressure' as falsecontinueprint("Touchpoint: (%d,%d,%d)"%(point["x"],point["y"],point["pressure"]))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.