April 2017
Beginner to intermediate
312 pages
7h 23m
English
The motor driver is connected to I2C port-1 (the I2C port-0 serves a different purpose. Refer to Chapter 11, Tips and Tricks, for more information). We will make use of the i2cdetect command to scan for devices connected via the I2C interface. On your command-line interface, run the following command:
sudo i2cdetect -y 1
It provides an output that looks like this:
0123456789abcdef00:-- -- -- -- -- -- -- -- -- -- -- -- --10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --60: 60 -- -- -- -- -- -- -- -- -- -- -- -- ...Read now
Unlock full access