Programming Interactivity is a book by Joshua Noble, released by O’Reilly in 2009, focusing on designing interaction with Processing, Arduino, and OpenFrameworks:
Make cool stuff. If you’re a designer or artist without a lot of programming experience, this book will teach you to work with 2D and 3D graphics, sound, physical interaction, and electronic circuitry to create all sorts of interesting and compelling experiences — online and off. Programming Interactivity explains programming and electrical engineering basics, and introduces three freely available tools created specifically for artists and designers: Processing, Arduino, and OpenFrameworks.
There is a blog to complement the book: http://programminginteractivity.com/wordpress/