{"library":"spidev","title":"spidev","type":"library","description":"Python bindings for Linux SPI access through spidev. Current version 3.8 provides low-level control of SPI devices via the Linux spidev kernel interface. Release cadence is infrequent; maintained on GitHub.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install spidev"],"cli":null},"imports":["from spidev import SpiDev"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"http://github.com/doceme/py-spidev","docs":null,"changelog":null,"pypi":"https://pypi.org/project/spidev/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from spidev import SpiDev\n\nspi = SpiDev()\nspi.open(0, 0)  # bus=0, device=0\nspi.max_speed_hz = 1000000\nspi.mode = 0b00\n\nto_send = [0x01, 0x02, 0x03]\nresponse = spi.xfer(to_send)\nprint(response)\nspi.close()","lang":"python","description":"Open SPI bus 0, device 0, transfer bytes, and close.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}