Saravanan666/pypi-org huggingface dataset:
Package: adafruit-circuitpython-amg88xx
IntroductionAdafruit CircuitPython module for the AMG88xx GRID-Eye IR 8x8 thermal camera.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-amg88xxTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-amg88xxTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-amg88xxUsage ExampleOf course, you must import the library to use it:importbusioimportadafruit_amg88xxThe way to create an I2C object depends on the board you are using. For boards with labeled SCL and SDA pins, you can:importboardYou can also use pins defined by the onboard microcontroller through the microcontroller.pin module.Now, to initialize the I2C bus:i2c_bus=busio.I2C(board.SCL,board.SDA)Once you have created the I2C interface object, you can use it to instantiate the AMG88xx objectamg=adafruit_amg88xx.AMG88XX(i2c_bus)You can also optionally use the alternate i2c address (make sure to solder the jumper on the back of the board if you want to do this)amg=adafruit_amg88xx.AMG88XX(i2c_bus,addr=0x68)Pixels can be then be read by doing:print(amg.pixels)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-as726x
IntroductionDriver for the AS726x spectral sensorsInstallation and 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-as726xTo install system-wide (this may be required in some cases:sudopip3installadafruit-circuitpython-as726xTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-as726xDocumentationAPI 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-as7341
IntroductionCircuitPython library for use with the Adafruit AS7341 breakout.NOTE: Due to the size of this library, it may not work on M0 (ex: Trinket M0) and other
low memory boards.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-as7341To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-as7341To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-as7341Usage Examplefromtimeimportsleepimportboardfromadafruit_as7341importAS7341i2c=board.I2C()# uses board.SCL and board.SDAsensor=AS7341(i2c)defbar_graph(read_value):scaled=int(read_value/1000)return"[%5d] "%read_value+(scaled*"*")whileTrue:print("F1 - 415nm/Violet%s"%bar_graph(sensor.channel_415nm))print("F2 - 445nm//Indigo%s"%bar_graph(sensor.channel_445nm))print("F3 - 480nm//Blue%s"%bar_graph(sensor.channel_480nm))print("F4 - 515nm//Cyan%s"%bar_graph(sensor.channel_515nm))print("F5 - 555nm/Green%s"%bar_graph(sensor.channel_555nm))print("F6 - 590nm/Yellow%s"%bar_graph(sensor.channel_590nm))print("F7 - 630nm/Orange%s"%bar_graph(sensor.channel_630nm))print("F8 - 680nm/Red%s"%bar_graph(sensor.channel_680nm))print("Clear%s"%bar_graph(sensor.channel_clear))print("Near-IR (NIR)%s"%bar_graph(sensor.channel_nir))print("\n------------------------------------------------")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-asyncio
IntroductionCooperative multitasking and asynchronous I/OThe code in this library is largely based on theMicroPython uasyncio implementation.DependenciesThis driver depends on:Adafruit CircuitPythonTicksPlease 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 PyPIThis library is meant to be a subset of the `asynciomodule in CPython
<https://docs.python.org/3/library/asyncio.html>`_, and will not be made available on PyPI.
Use the CPython version instead.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:circupinstallasyncioOr the following command to update an existing version:circupupdateDocumentationAPI 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-atecc
IntroductionDriver forMicrochip’s ATECCx08 cryptographic co-processors with secure hardware-based key storage.Note: This library was developed and tested with an ATECC608A, but should work for ATECC508 modules as well.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 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:pip3installadafruit-circuitpython-ateccTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-ateccTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-ateccUsage ExampleExamples of using this module are in 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-avrprog
IntroductionProgram your favorite AVR chips directly from CircuitPython with this handy helper class that will let you make stand-alone programmers right from your REPL. Should work with any/all AVR chips, via SPI programming. Tested with ATmega328, ATtiny85 and ATmega2560DependenciesThis 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-avrprogTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-avrprogTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-avrprogUsage ExampleSee examples folder for full examples that progam various bootloaders onto chips.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-aw9523
IntroductionPython library for AW9523 GPIO expander and LED 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 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-aw9523To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-aw9523To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-aw9523Usage Exampleimportboardimportdigitalioimportadafruit_aw9523i2c=board.I2C()aw=adafruit_aw9523.AW9523(i2c)led_pin=aw.get_pin(0)# LED on AW9523 io 0button_pin=aw.get_pin(1)# Button on AW io 1# LED is an output, initialize to highled_pin.switch_to_output(value=True)# Button is an input, note internal pull-ups are not supported!button_pin.direction=digitalio.Direction.INPUTwhileTrue:# LED mirrors button pinled_pin.value=button_pin.valueDocumentationAPI 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-aws-iot
IntroductionAmazon AWS IoT MQTT Client for CircuitPython.Note: This library requires version>=1.4.0of theAdafruit fork of the Arduino NINA-W102 firmwareinstalled on your ESP32 Airlift/WiFi Co-Processor.If you do not know how to do this,visit the Adafruit Learning System guide for this topic…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-aws-iotTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-aws-iotTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-aws-iotUsage ExampleLibrary examples within 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-bd3491fs
IntroductionCircuitPython library for the Rohm BD3491FS Audio ProcessorDependenciesThis 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-bd3491fsTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-bd3491fsTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-bd3491fsUsage Exampleimportboardimportadafruit_bd3491fsimportbusioi2c=busio.I2C(board.SCL,board.SDA)bd3491fs=adafruit_bd3491fs.BD3491FS(i2c)bd3491fs.active_input=adafruit_bd3491fs.Input.Abd3491fs.input_gain=adafruit_bd3491fs.Level.LEVEL_20DBbd3491fs.channel_1_attenuation=0bd3491fs.channel_2_attenuation=0DocumentationAPI 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-bh1750
IntroductionCircuitPython library for use with the Adafruit BH1750 Ambient Light Sensor BreakoutDependenciesThis 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-bh1750To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-bh1750To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-bh1750Usage Exampleimporttimeimportboardimportadafruit_bh1750i2c=board.I2C()sensor=adafruit_bh1750.BH1750(i2c)whileTrue:print("%.2fLux"%sensor.lux)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-binascii
IntroductionThe binascii module contains a number of methods to convert between binary and various ASCII-encoded binary representations.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-binasciiTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-binasciiTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-binasciiUsage ExampleHex <-> Binary Conversionsfromadafruit_binasciiimporthexlify,unhexlify# Binary data.data=b"CircuitPython is Awesome!"# Get the hexadecimal representation of the binary datahex_data=hexlify(data)print("Hex Data: ",hex_data)# Get the binary data represented by hex_databin_data=unhexlify(hex_data)print("Binary Data: ",bin_data)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-bitbangio
IntroductionA library for adding bitbang I2C and SPI to CircuitPython without the built-in bitbangio module.
The interface is intended to be the same as bitbangio and therefore there is no bit order or chip
select functionality. If your board supports bitbangio, it is recommended to use that instead
as the timing should be more reliable.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-bitbangioTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-bitbangioTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-bitbangioUsage Example"""
This example is for demonstrating how to retrieving the
board ID from a BME280, which is stored in register 0xD0.
It should return a result of [96]
"""importboardimportdigitalioimportadafruit_bitbangioasbitbangio# Change these to the actual connectionsSCLK_PIN=board.D6MOSI_PIN=board.D17MISO_PIN=board.D18CS_PIN=board.D5cs=digitalio.DigitalInOut(CS_PIN)cs.switch_to_output(value=True)spi=bitbangio.SPI(SCLK_PIN,MOSI=MOSI_PIN,MISO=MISO_PIN)cs.value=0whilenotspi.try_lock():passspi.write([0xD0])data=[0x00]spi.readinto(data)spi.unlock()cs.value=1print("Result is{}".format(data))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-bitmap-font
IntroductionLoads bitmap fonts into CircuitPython’s displayio. BDF and PCF files are well supported. TTF
support is not yet complete.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-bitmap_fontTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-bitmap_fontTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-bitmap_fontUsage Examplefromadafruit_bitmap_fontimportbitmap_fontfromdisplayioimportBitmapfont=bitmap_font.load_font("fonts/LeagueSpartan-Bold-16.bdf",Bitmap)print(font.get_glyph(ord("A")))Creating FontsSeethis learn guidefor more information about building custom fornt filesThe command line toolotf2bdfcan be used make bdf files for use with this library.The command line toolbdftopcfcan be used make pcf files for use with 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.
Package: adafruit-circuitpython-bitmapsaver
IntroductionSave a displayio.Bitmap (and associated displayio.Palette) into a BMP file.DependenciesThis driver depends on:Adafruit CircuitPythonCircuitPython 5.0 or later is required.Please 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:pip3installadafruit-circuitpython-bitmapsaverTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-bitmapsaverTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-bitmapsaverUsage ExampleimportboardimportbusioimportdigitaliofromdisplayioimportBitmap,Paletteimportadafruit_sdcardimportstoragefromadafruit_bitmapsaverimportsave_pixelsprint('Setting up SD card')spi=busio.SPI(board.SCK,MOSI=board.MOSI,MISO=board.MISO)cs=digitalio.DigitalInOut(board.SD_CS)sdcard=adafruit_sdcard.SDCard(spi,cs)vfs=storage.VfsFat(sdcard)storage.mount(vfs,"/sd")WHITE=0xFFFFFFBLACK=0x000000RED=0xFF0000ORANGE=0xFFA500YELLOW=0xFFFF00GREEN=0x00FF00BLUE=0x0000FFPURPLE=0x800080PINK=0xFFC0CBcolors=(BLACK,RED,ORANGE,YELLOW,GREEN,BLUE,PURPLE,WHITE)print('Building sample bitmap and palette')bitmap=Bitmap(16,16,9)palette=Palette(len(colors))fori,cinenumerate(colors):palette[i]=cforxinrange(16):foryinrange(16):ifx==0ory==0orx==15ory==15:bitmap[x,y]=1elifx==y:bitmap[x,y]=4elifx==15-y:bitmap[x,y]=5else:bitmap[x,y]=0print('Saving bitmap')save_pixels('/sd/test.bmp',bitmap,palette)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-ble
IntroductionThis module provides higher-level BLE (Bluetooth Low Energy) functionality,
building on the native_bleiomodule.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 PyPIWarning: Linux support isverylimited. SeeAdafruit Blinka _bleiofor details.On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI. To install for current user:pip3installadafruit-circuitpython-bleTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-bleTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-bleUsage Examplefromadafruit_bleimportBLERadioradio=BLERadio()print("scanning")found=set()forentryinradio.start_scan(timeout=60,minimum_rssi=-80):addr=entry.addressifaddrnotinfound:print(entry)found.add(addr)print("scan done")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-ble-adafruit
IntroductionBLE Adafruit ServiceDependenciesThis driver depends on:Adafruit CircuitPythonCircuitPython must be at least version 6.0.0.Please 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:pip3installadafruit-circuitpython-ble-adafruitTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-ble-adafruitTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-ble-adafruitDocumentationAPI 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.