User manual

Ausgabe 07.12.2016 Copyright by Joy-IT 23
3
RPi - Explorer700
13.4 Conguring 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 sll in the terminal debugging funcon mode.)
1. Enable the I2C funcon. Run the following command to congure your Raspberry Pi board:
Select Advanced Opons -> I2C -> yes, to start up the I2C core driver. Then you also need to
modify the conguraon le. Run the following command to open the conguraon le:
Add the following two lines to the conguraon le
i2c-bcm2708
i2c-dev
Press the keys Ctrl+X to exit, and input Y to save the sengs. Then, reboot the module to make
the sengs take eect.
2. Enable the serial funcon. The serial port of RPi is set to serial terminal debugging funcon
mode by default. If you want the serial port services as a common IO, you should modify the
sengs on the RPi. When the terminal debugging funcon 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 funcon of the serial port again.
Select Advanced Opons -> Serial. Select the opon no can disable the serial debugging funcon. And
then, the serial port can be used for serial communicaon. And select the opon yes can enable the
serial debugging funcon. You should reboot the module to make the sengs take eect.
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 funcon, run the following command:
Select Advanced Opons -> I2C -> yes, to start up I2C core driver.
sudo raspi-cong
sudo nano /etc/modules
sudo raspi-cong
sudo raspi-cong