6. Check I2C and SPI Interface

We will be using Raspberry Pi’s I2C and SPI interfaces. These interfaces should have been enabled when installing the robot-hat module earlier. To ensure everything is in order, let’s check if they are indeed enabled.

  1. Input the following command:

    sudo raspi-config
    
  2. Choose Interfacing Options by press the down arrow key on your keyboard, then press the Enter key.

    ../../_images/image282.png
  3. Then I2C.

    ../../_images/image283.png
  4. Use the arrow keys on the keyboard to select <Yes> -> <OK> to complete the setup of the I2C.

    ../../_images/image284.png
  5. Go to Interfacing Options again and select SPI.

    ../../_images/image-spi1.png
  6. Use the arrow keys on the keyboard to select <Yes> -> <OK> to complete the setup of the SPI.

    ../../_images/image-spi2.png