Saravanan666/pypi-org huggingface dataset:
Package: adafruit-circuitpython-tsl2561
IntroductionCircuitPython driver for TSL2561 Light Sensor.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-tsl2561To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-tsl2561To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-tsl2561Usage Example>>>importboard>>>importbusio>>>i2c=busio.I2C(board.SCL,board.SDA)>>>importadafruit_tsl2561>>>tsl=adafruit_tsl2561.TSL2561(i2c)>>>tsl.lux3294.37DocumentationAPI 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-tsl2591
IntroductionCircuitPython module for the TSL2591 high precision light sensor.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-tsl2591To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-tsl2591To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-tsl2591Usage ExampleSee examples/tsl2591_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-tt21100
IntroductionBasic driver for TT21100 touchscreen drivers. The ESP32-S3 Box dev board uses it.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 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-tt21100To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-tt21100To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-tt21100Installing 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:circupinstalltt21100Or the following command to update an existing version:circupupdateUsage Exampleimporttimeimportbusioimportboardimportadafruit_tt21100# Create library object (named "tt") using a Bus I2C porti2c=busio.I2C(board.SCL,board.SDA)tt=adafruit_tt21100.TT21100(i2c)whileTrue:# if the screen is being touched print the touchesiftt.touched:print(tt.touches)time.sleep(0.15)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-turtle
IntroductionTurtle graphics library for CircuitPython and displayioDependenciesThis 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-turtleTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-turtleTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-turtleUsage Exampleimportboardfromadafruit_turtleimportColor,turtleturtle=turtle(board.DISPLAY)starsize=min(board.DISPLAY.width,board.DISPLAY.height)*0.9# 90% of screensizeprint("Turtle time! Lets draw a star")turtle.pencolor(Color.BLUE)turtle.penup()turtle.goto(-starsize/2,0)turtle.pendown()start=turtle.pos()whileTrue:turtle.forward(starsize)turtle.left(170)ifabs(turtle.pos()-start)<1:breakwhileTrue: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-typing
IntroductionDefinitions not in the standardtypingmodule that are
needed for type annotation of CircuitPython code.This library is not needed at runtime for CircuitPython code, and does not need to be in the bundle.DependenciesInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installadafruit-circuitpython-typingTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-typingTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-typingDocumentationAPI 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-uc8151d
IntroductionCircuitPythondisplayiodriver for US8151D-based ePaper displaysDependenciesThis 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.Adafruit 2.9” Flexible 296x128 Monochrome eInk / ePaper DisplayPurchase 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-uc8151dTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-uc8151dTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-uc8151dInstalling 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_uc8151dOr the following command to update an existing version:circupupdateUsage Exampleimporttimeimportboardimportdisplayioimportfourwireimportadafruit_uc8151ddisplayio.release_displays()# This pinout works on a Feather M4 and may need to be altered for other boards.spi=board.SPI()# Uses SCK and MOSIepd_cs=board.D9epd_dc=board.D10epd_reset=board.D5epd_busy=Nonedisplay_bus=fourwire.FourWire(spi,command=epd_dc,chip_select=epd_cs,reset=epd_reset,baudrate=1000000)time.sleep(1)display=adafruit_uc8151d.UC8151D(display_bus,width=296,height=128,rotation=90,busy_pin=epd_busy)g=displayio.Group()withopen("/display-ruler.bmp","rb")asf:pic=displayio.OnDiskBitmap(f)t=displayio.TileGrid(pic,pixel_shader=pic.pixel_shader)g.append(t)display.root_group=gdisplay.refresh()time.sleep(120)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-us100
IntroductionCircuitPython library for reading distance and temperature via US-100 ultra-sonic 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-us100To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-us100To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-us100Usage Exampleimporttimeimportboardimportbusioimportadafruit_us100uart=busio.UART(board.TX,board.RX,baudrate=9600)# Create a US-100 module instance.us100=adafruit_us100.US100(uart)whileTrue:print("-----")print(f"Temperature:{us100.temperature}°C")print(f"Distance:{us100.distance}cm")time.sleep(0.5)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-usb-host-descriptors
IntroductionHelpers for getting USB descriptorsDependenciesThis driver depends on:Adafruit CircuitPython 9+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 from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installadafruit-circuitpython-usb-host-descriptorsTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-usb-host-descriptorsTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installadafruit-circuitpython-usb-host-descriptorsInstalling 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_usb_host_descriptorsOr the following command to update an existing version:circupupdateUsage ExamplePrint basic information about a device and its first (and usually only) configuration.# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries# SPDX-FileCopyrightText: Copyright (c) 2023 Scott Shawcroft for Adafruit Industries## SPDX-License-Identifier: Unlicenseimporttimeimportusb.coreimportadafruit_usb_host_descriptorsDIR_IN=0x80whileTrue:print("searching for devices")fordeviceinusb.core.find(find_all=True):print("pid",hex(device.idProduct))print("vid",hex(device.idVendor))print("man",device.manufacturer)print("product",device.product)print("serial",device.serial_number)print("config[0]:")config_descriptor=adafruit_usb_host_descriptors.get_configuration_descriptor(device,0)i=0whilei<len(config_descriptor):descriptor_len=config_descriptor[i]descriptor_type=config_descriptor[i+1]ifdescriptor_type==adafruit_usb_host_descriptors.DESC_CONFIGURATION:config_value=config_descriptor[i+5]print(f" value{config_value:d}")elifdescriptor_type==adafruit_usb_host_descriptors.DESC_INTERFACE:interface_number=config_descriptor[i+2]interface_class=config_descriptor[i+5]interface_subclass=config_descriptor[i+6]print(f" interface[{interface_number:d}]")print(f"  class{interface_class:02x}subclass{interface_subclass:02x}")elifdescriptor_type==adafruit_usb_host_descriptors.DESC_ENDPOINT:endpoint_address=config_descriptor[i+2]ifendpoint_address&DIR_IN:print(f"  IN{endpoint_address:02x}")else:print(f"  OUT{endpoint_address:02x}")i+=descriptor_lenprint()time.sleep(5)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-vc0706
IntroductionCircuitPython module for use with theVC0706 serial TTL camera.  Allows basic image capture and download of image data from the camera over a serial connection.  See examples for demo
of saving image to a SD card (must be wired up separately) or internally.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-vc0706To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-vc0706To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-vc0706Usage ExampleSee examples/snapshot.py.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-vcnl4010
IntroductionCircuitPython module for the VCNL4010 proximity and light sensor.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-vcnl4010To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-vcnl4010To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-vcnl4010Usage ExampleSee examples/vcnl4010_simpletest.py for an example 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-vcnl4020
IntroductionDriver for the VCNL4020 proximity and light sensorDependenciesThis 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.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-vcnl4020To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-vcnl4020To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installadafruit-circuitpython-vcnl4020Installing 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_vcnl4020Or the following command to update an existing version:circupupdateUsage Exampleimporttimeimportboardimportadafruit_vcnl4020i2c=board.I2C()# Initialize VCNL4020sensor=adafruit_vcnl4020.Adafruit_VCNL4020(i2c)whileTrue:print(f"Proximity is:{sensor.proximity}")print(f"Ambient is:{sensor.lux}")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-vcnl4040
IntroductionA CircuitPython library for the VCNL4040 proximity and ambient light sensor.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-vcnl4040To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-vcnl4040To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-vcnl4040Usage Exampleimporttimeimportboardimportadafruit_vcnl4040i2c=board.I2C()sensor=adafruit_vcnl4040.VCNL4040(i2c)whileTrue:print("Proximity:",sensor.proximity)print("Light:",sensor.light)print("White:",sensor.white)time.sleep(0.3)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-veml6070
IntroductionCircuitPython driver for theVEML6070 UV Index Sensor BreakoutDependenciesThis 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-veml6070To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-veml6070To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-veml6070Usage Exampleimporttimeimportboardfromadafruit_veml6070importVEML6070withboard.I2C()asi2c:uv=VEML6070(i2c)# Alternative constructors with parameters#uv = VEML6070(i2c, 'VEML6070_1_T')#uv = VEML6070(i2c, 'VEML6070_HALF_T', True)# take 10 readingsforjinrange(10):uv_raw=uv.uv_rawrisk_level=uv.get_index(uv_raw)print('Reading:{0}| Risk Level:{1}'.format(uv_raw,risk_level))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-veml6075
IntroductionCircuitPython library to support VEML6075 UVA & UVB sensor.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-veml6075To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-veml6075To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-veml6075Usage Exampleimporttimeimportboardimportbusioimportadafruit_veml6075i2c=busio.I2C(board.SCL,board.SDA)veml=adafruit_veml6075.VEML6075(i2c,integration_time=100)whileTrue:print(veml.uv_index)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-veml7700
IntroductionCircuitPython driver for VEML7700 high precision I2C ambient light sensor.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-veml7700To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-veml7700To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-veml7700Usage Exampleimporttimeimportboardimportadafruit_veml7700i2c=board.I2C()# uses board.SCL and board.SDAveml7700=adafruit_veml7700.VEML7700(i2c)whileTrue:print("Ambient light:",veml7700.light)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-vl53l0x
IntroductionCircuitPython driver for the VL53L0X distance sensor.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-vl53l0xTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-vl53l0xTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-vl53l0xUsage ExampleSee usage in the examples/vl53l0x_simpletest.py file.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.