Book Image

Learning JavaScript Robotics

By : Kassandra Perch
Book Image

Learning JavaScript Robotics

By: Kassandra Perch

Overview of this book

Table of Contents (16 chapters)
Learning JavaScript Robotics
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 8. Advanced Components – SPI, I2C, and Other Devices

We've covered a lot of different types of device already—including input, output, and movement. This chapter delves into how these devices can be implemented in different ways and for different reasons. In this chapter, we'll take a look at the I2C and SPI protocols and their advantages and setbacks with Johnny-Five. We'll also take a look at how to add your own components to Johnny-Five, which gives us a good look into how these devices work and how you can contribute to the development of Johnny-Five! In this chapter, we will cover the following topics:

  • Why do we need the I2C and SPI protocols?

  • The SPI devices

  • The I2C devices

  • External devices