Enable I2C Interface(Important)

Here we are using the Raspberry Pi’s I2C interfaces, but by default they are disabled, so we need to enable them first.

  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. After you select <Finish>, a pop-up will remind you that you need to reboot for the settings to take effect, select <Yes>.

    ../../_images/camera_enable2.png