{"library":"smbus","title":"smbus - Python SMBus bindings","type":"library","description":"Python bindings for Linux SMBus access through i2c-dev. Current version 1.1.post2. Minimal maintenance, not actively developed.","language":"python","status":"maintenance","last_verified":"Sat May 09","install":{"commands":["pip install smbus"],"cli":null},"imports":["from smbus import SMBus"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://i2c.wiki.kernel.org/index.php/I2C_Tools","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/smbus/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from smbus import SMBus\n\nbus = SMBus(1)  # /dev/i2c-1\naddress = 0x48\ndata = bus.read_byte_data(address, 0x00)\nprint(f\"Read: {data}\")\nbus.close()","lang":"python","description":"Open I2C bus 1, read one byte from register 0x00 of device at address 0x48.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}