I wrote a series of blog posts on programming littleBits circuits using Johnny-Five for the Packt Pub blog. Read Part One and Part Two.