Saravanan666/pypi-org huggingface dataset:
Package: adafruit-circuitpython-si5351
IntroductionSI5351 clock generator module.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-si5351To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-si5351To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-si5351Usage ExampleSee examples/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-si7021
IntroductionCircuitPython module for use with the SI7021 Temperature and Humidity 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-si7021To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-si7021To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-si7021Usage NotesOf course, you must import the library to use it:importadafruit_si7021This driver takes an instantiated and active I2C object (from thebusioor
thebitbangiolibrary) as an argument to its constructor.  The way to create
an I2C object depends on the board you are using. For boards with labeled SCL
and SDA pins, you can:frombusioimportI2CfromboardimportSCL,SDAi2c=I2C(SCL,SDA)Once you have created the I2C interface object, you can use it to instantiate
the sensor object:sensor=adafruit_si7021.SI7021(i2c)And then you can start measuring the temperature and humidity:print(sensor.temperature)print(sensor.relative_humidity)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-simpleio
IntroductionSimpleIO features a number of helpers to simplify hardware interactions. Many
of the functions and classes are inspired by Arduino APIs to make it easier to
move to CircuitPython from Arduino.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-simpleioTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-simpleioTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-simpleioUsage ExampleSee the examples in theexamples/folder for 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-simplemath
IntroductionMath utility functionsDependenciesThis 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-simplemathTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-simplemathTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-simplemathDocumentationAPI 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-simple-text-display
IntroductionA helper library for displaying lines of text on a display using displayio.DependenciesThis driver depends on:Adafruit CircuitPythonAdafruit CircuitPython DisplayTextPlease 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.This library works with any microcontroller with a built in display, or a microcontroller with an
external display connected.Purchase one from the Adafruit shop.Usage ExampleThis example takes the microcontroller CPU temperature in C and F, and displays it on the display
under the heading “Temperature Data!”.importmicrocontrollerfromadafruit_simple_text_displayimportSimpleTextDisplaytemperature_data=SimpleTextDisplay(title="Temperature Data!",title_scale=2)whileTrue:temperature_data[0].text="Temperature:{:.2f}degrees C".format(microcontroller.cpu.temperature)temperature_data[1].text="Temperature:{:.2f}degrees F".format((microcontroller.cpu.temperature*(9/5)+32))temperature_data.show()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-slideshow
IntroductionCircuitPython helper library for displaying a slideshow of images on a display.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-slideshowTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-slideshowTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-slideshowUsage Examplefromadafruit_slideshowimportPlayBackOrder,SlideShowimportboardimportpwmio# Create the slideshow object that plays through once alphabetically.slideshow=SlideShow(board.DISPLAY,pwmio.PWMOut(board.TFT_BACKLIGHT),folder="/",loop=False,order=PlayBackOrder.ALPHABETICAL)whileslideshow.update():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-spd1656
IntroductionDriver for SPD1656 driven ACeP (7-color) e-paper displays.Please note that we do not have Blinka support for this yet. So it won’t work with a Raspberry Pi.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.This supports the common 4” and 5.65” ACeP displays.[Waveshare 4”](https://www.waveshare.com/4.01inch-e-paper-hat-f.htm)[Waveshare 5.65”](https://www.waveshare.com/5.65inch-e-paper-module-f.htm)[Pimoroni 5.7”](https://shop.pimoroni.com/products/inky-impression-5-7) (Likely the same as 5.65”.)[Pimoroni 4”](https://shop.pimoroni.com/products/inky-impression-4)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-spd1656To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-spd1656To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installadafruit-circuitpython-spd1656Installing 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_spd1656Or the following command to update an existing version:circupupdateUsage Example# SPDX-FileCopyrightText: Copyright (c) 2023 Scott Shawcroft for Adafruit Industries# SPDX-FileCopyrightText: Copyright (c) 2021 Melissa LeBlanc-Williams for Adafruit Industries## SPDX-License-Identifier: Unlicense"""Simple test script for 5.6" 600x448 7-color ACeP display.
  """# pylint: disable=no-memberimporttimeimportboardimportdisplayioimportadafruit_spd1656displayio.release_displays()# This pinout works on a Feather RP2040 and may need to be altered for other boards.spi=board.SPI()# Uses SCK and MOSIepd_cs=board.D9epd_dc=board.D10epd_reset=board.D11epd_busy=board.D12display_bus=fourwire.FourWire(spi,command=epd_dc,chip_select=epd_cs,reset=epd_reset,baudrate=1000000)display=adafruit_spd1656.SPD1656(display_bus,width=600,height=448,busy_pin=epd_busy)g=displayio.Group()fn="/display-ruler-720p.bmp"withopen(fn,"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-ssd1305
IntroductionFramebuf (non-displayio) driver for SSD1305 displaysDependenciesThis 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-ssd1305To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-ssd1305To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-ssd1305Usage Example# Basic example of clearing and drawing pixels on a SSD1305 OLED display.# This example and library is meant to work with Adafruit CircuitPython API.# Author: Tony DiCola# License: Public Domain# Import all board pins.fromboardimportSCL,SDAimportbusio# Import the SSD1305 module.importadafruit_ssd1305# Create the I2C interface.i2c=busio.I2C(SCL,SDA)# Create the SSD1305 OLED class.# The first two parameters are the pixel width and pixel height.  Change these# to the right size for your display!display=adafruit_ssd1305.SSD1305_I2C(128,32,i2c)# Alternatively you can change the I2C address of the device with an addr parameter:#display = adafruit_ssd1305.SSD1305_I2C(128, 32, i2c, addr=0x31)# Clear the display.  Always call show after changing pixels to make the display# update visible!display.fill(0)display.show()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-ssd1306
IntroductionAdafruit CircuitPython driver for SSD1306 or SSD1305 OLED displays. Note that SSD1305 displays are back compatible so they can be used in-place of SSD1306 with the same code and commands.This driver implements theadafruit_framebuf interface. It isnotthedisplayiodriver for the SSD1306. See theAdafruit CircuitPython DisplayIO SSD1306driver fordisplayiosupport.DependenciesThis driver depends on:Adafruit CircuitPythonBus DeviceAdafruit framebufPlease 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-ssd1306To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-ssd1306To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-ssd1306Usage Example# Basic example of clearing and drawing pixels on a SSD1306 OLED display.# This example and library is meant to work with Adafruit CircuitPython API.# Author: Tony DiCola# License: Public Domain# Import all board pins.fromboardimportSCL,SDAimportbusio# Import the SSD1306 module.importadafruit_ssd1306# Create the I2C interface.i2c=busio.I2C(SCL,SDA)# Create the SSD1306 OLED class.# The first two parameters are the pixel width and pixel height.  Change these# to the right size for your display!display=adafruit_ssd1306.SSD1306_I2C(128,32,i2c)# Alternatively you can change the I2C address of the device with an addr parameter:#display = adafruit_ssd1306.SSD1306_I2C(128, 32, i2c, addr=0x31)# Clear the display.  Always call show after changing pixels to make the display# update visible!display.fill(0)display.show()# Set a pixel in the origin 0,0 position.display.pixel(0,0,1)# Set a pixel in the middle 64, 16 position.display.pixel(64,16,1)# Set a pixel in the opposite 127, 31 position.display.pixel(127,31,1)display.show()More examples and details can be found in theadafruit_framebuf docs.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-ssd1322
IntroductionDisplayIO driver for grayscale OLEDs driven by SSD1322DependenciesThis 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-ssd1322To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-ssd1322To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-ssd1322Usage Exampleimporttimeimportboardimportbusioimportdisplayioimportadafruit_ssd1322displayio.release_displays()# This pinout works on a Metro and may need to be altered for other boards.spi=busio.SPI(board.SCL,board.SDA)tft_cs=board.D6tft_dc=board.D9tft_reset=board.D5display_bus=displayio.FourWire(spi,command=tft_dc,chip_select=tft_cs,reset=tft_reset,baudrate=1000000)time.sleep(1)display=adafruit_ssd1322.SSD1322(display_bus,width=256,height=64,colstart=28)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-ssd1325
IntroductionDisplayIO driver for grayscale OLEDs drive by SSD1325DependenciesThis 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-ssd1325To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-ssd1325To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-ssd1325Usage Exampleimporttimeimportboardimportbusioimportdisplayioimportfourwireimportadafruit_ssd1325displayio.release_displays()# This pinout works on a Metro and may need to be altered for other boards.spi=busio.SPI(board.SCL,board.SDA)tft_cs=board.D9tft_dc=board.D8tft_reset=board.D7display_bus=fourwire.FourWire(spi,command=tft_dc,chip_select=tft_cs,reset=tft_reset,baudrate=1000000)time.sleep(1)display=adafruit_ssd1325.SSD1325(display_bus,width=128,height=64)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-ssd1327
IntroductionDisplayIO drivers for grayscale OLEDs driven by SSD1327DependenciesThis 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-ssd1327To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-ssd1327To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-ssd1327Usage Exampleimportboardimportdisplayioimportadafruit_ssd1327importbusioimporttimedisplayio.release_displays()# This pinout works on a Metro and may need to be altered for other boards.spi=busio.SPI(board.SCL,board.SDA)tft_cs=board.D6tft_dc=board.D9tft_reset=board.D5display_bus=displayio.FourWire(spi,command=tft_dc,chip_select=tft_cs,reset=tft_reset,baudrate=1000000)time.sleep(1)display=adafruit_ssd1327.SSD1327(display_bus,width=128,height=128)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-ssd1331
Introductiondisplayio drivers for SSD1331 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 bundle.Usage Exampleimportboardimportdisplayio# Starting in CircuitPython 9.x fourwire will be a seperate internal library# rather than a component of the displayio librarytry:fromfourwireimportFourWireexceptImportError:fromdisplayioimportFourWireimportterminaliofromadafruit_display_textimportlabelfromadafruit_ssd1331importSSD1331spi=board.SPI()tft_cs=board.D5tft_dc=board.D6displayio.release_displays()display_bus=FourWire(spi,command=tft_dc,chip_select=tft_cs,reset=board.D9)display=SSD1331(display_bus,width=96,height=64)# Make the display contextsplash=displayio.Group()display.root_group=splashcolor_bitmap=displayio.Bitmap(96,64,1)color_palette=displayio.Palette(1)color_palette[0]=0x00FF00# Bright Greenbg_sprite=displayio.TileGrid(color_bitmap,pixel_shader=color_palette,x=0,y=0)splash.append(bg_sprite)# Draw a smaller inner rectangleinner_bitmap=displayio.Bitmap(86,54,1)inner_palette=displayio.Palette(1)inner_palette[0]=0xAA0088# Purpleinner_sprite=displayio.TileGrid(inner_bitmap,pixel_shader=inner_palette,x=5,y=5)splash.append(inner_sprite)# Draw a labeltext="Hello World!"text_area=label.Label(terminalio.FONT,text=text,color=0xFFFF00,x=12,y=32)splash.append(text_area)whileTrue: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-ssd1351
Introductiondisplayio Driver for SSD1351 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 bundle.Usage Exampleimportboardimportdisplayiofromadafruit_ssd1351importSSD1351spi=board.SPI()tft_cs=board.D5tft_dc=board.D6displayio.release_displays()display_bus=displayio.FourWire(spi,command=tft_dc,chip_select=tft_cs,reset=board.D9)display=SSD1351(display_bus,width=128,height=128)# Make the display contextsplash=displayio.Group()display.root_group=splashcolor_bitmap=displayio.Bitmap(128,128,1)color_palette=displayio.Palette(1)color_palette[0]=0xFF0000bg_sprite=displayio.TileGrid(color_bitmap,pixel_shader=color_palette,x=0,y=0)splash.append(bg_sprite)whileTrue: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.