This book shows you how to connect all sorts of devices to Raspberry Pi and Arduino and to control them. There are also some pretty cool projects along the way, including a dancing puppet, a drinks can crusher and a balloon popper.
Errata
Page 277 near the bottom the command URL to fetch the Raspberry Pi Adafruit SD1331 code is wrong. The git clone command should be:
$ git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git