User manual
Ausgabe 07.12.2016 Copyright by Joy-IT 23
3
RPi - Explorer700
13.4 Conguring the interfaces
(Before running the API codes we provided, you should start up the corresponding core drivers of the
interfaces. In the ready-to-use system image le, both I2C and SPI are set to Enable by default, but the
serial port is sll in the terminal debugging funcon mode.)
1. Enable the I2C funcon. Run the following command to congure your Raspberry Pi board:
Select Advanced Opons -> I2C -> yes, to start up the I2C core driver. Then you also need to
modify the conguraon le. Run the following command to open the conguraon le:
Add the following two lines to the conguraon le
i2c-bcm2708
i2c-dev
Press the keys Ctrl+X to exit, and input Y to save the sengs. Then, reboot the module to make
the sengs take eect.
2. Enable the serial funcon. The serial port of RPi is set to serial terminal debugging funcon
mode by default. If you want the serial port services as a common IO, you should modify the
sengs on the RPi. When the terminal debugging funcon is disabled, you cannot access RPi
board via the serial port any more. If you want to control the RPi, you may need to enable the
debugging funcon of the serial port again.
Select Advanced Opons -> Serial. Select the opon no can disable the serial debugging funcon. And
then, the serial port can be used for serial communicaon. And select the opon yes can enable the
serial debugging funcon. You should reboot the module to make the sengs take eect.
Note: the serial port on Raspberry Pi 3 Model B is unusable, because Pin 14 and Pin 15 is connected
to the on-board Bluetooth model.
1.Start up the spi funcon, run the following command:
Select Advanced Opons -> I2C -> yes, to start up I2C core driver.
sudo raspi-cong
sudo nano /etc/modules
sudo raspi-cong
sudo raspi-cong