I2C :

Tuto I2C

I2C

BusI2c RTC

Interfacing with I2C devices

GPIO :

Rpi-gpio

GitHub : Adafruit_LED_Backpack