Python Robotics Projects
上QQ阅读APP看书,第一时间看更新

Using GPIOs as Input

In the previous chapter, we understood how GPIOs are used for output. But, as the name suggests, the GPIO can be used for both input and output purposes. In this chapter, we will see how you can go ahead and use these pins to input the data over to Raspberry Pi.

The topics which we will cover in this chapter are:

  • A deeper pe into GPIOs
  • Interfacing the PIR sensor
  • Interfacing the ultrasonic proximity sensor
  • Interfacing through I2C