{"id":81425,"library":"i2c","title":"I2C","description":"Interface to I2C (TWI) implementations with abstractions for I2C devices, designed for Raspberry Pi.","status":"active","version":"0.4.2","language":"ruby","source_language":null,"source_url":"https://github.com/andec/i2c","tags":["i2c","raspberry-pi","hardware","embedded"],"install":[{"cmd":"gem install i2c","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'i2c', '~> 0.4.2'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"I2C","correct":"require 'i2c'"}],"quickstart":{"code":"require 'i2c'\ndevice = I2C.create('/dev/i2c-1')\ndevice.write(0x40, [0x00])","lang":"ruby","description":"Write to an I2C device at address 0x40"},"warnings":[{"fix":"Enable I2C via raspi-config or modprobe i2c-dev","message":"Requires I2C kernel module and /dev/i2c-* device access","severity":"gotcha","affected_versions":">= 0.4.0"}],"env_vars":null,"search_vec":"'abstract':8 'design':12 'devic':11 'embed':21 'hardwar':20 'i2c':1,4,10,16 'implement':6 'interfac':2 'pi':15,19 'raspberri':14,18 'raspberry-pi':17 'twi':5","created_at":"2026-06-19T04:49:31.438310+00:00","updated_at":"2026-06-19T04:49:31.438310+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/andec/i2c","github":"https://github.com/andec/i2c","docs":"http://www.rubydoc.info/gems/i2c/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking","other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}