arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

I2C

I2C configuration and setup

hashtag
Install I2C tools

If not already present, the first step is to install the I2C tools to be able to use the I2C ports.

hashtag

hashtag
Adjust I2C user group

To use the I2C commands without root, you'll need to add the NavQ+ user to the i2c group. To do this, you can run the following command:

hashtag

hashtag
Check the I2C connection

Now to check the connection and confirm that the port is working correctly. Connect something to the I2C JST-GH port, then run the command below. It shoudl show you raw output from most devices connected on the I2C bus(es). Note that the onboard NXP secure element SE05x will not respond to this command.

hashtag
Example

circle-check

The link below is a 3rd party example that shows the use of I2C from one of the NXP HoverGames participants.

sudo apt-get update -y
sudo apt-get install -y i2c-tools
sudo usermod -a -G i2c user
sudo su
echo 'KERNEL=="i2c-[0-9]*", GROUP="i2c"' >> /etc/udev/rules.d/10-local_i2c_group.rules
i2cdetect -y 5
Smart and Sustainable Agriculture SystemHackster.iochevron-right
Logo