76
ODROID-XU4 USER MANUAL
# cat /sys/class/i2c-dev/i2c-0/device/0-0077/temperature
240
# cat /sys/class/i2c-dev/i2c-0/device/0-0077/pressure
100985
# cat /sys/class/i2c-dev/i2c-0/device/0-0029/lux
335
The output values imply the following measurements:
240 = 24.0C
100985 = 1009.85Pa
335 = 335Lux
Shifter Shield
Many devices already available for integration support either
3.3V or 5.0V. However, the native GPIO pins on the XU4 operate at
1.8V. Because of this difference, a level shifter is needed to allow in-
ter-operation between the XU4 and these devices.
This board contains 3 x TSX0108E bi-directional level shifter
ICs. The 40-pin GPIO port on the XU4 is converted to the more com-
mon 0.1inch (2.54mm) pitch 40-pin header which is compatible with
the spacing on the C1+ and Raspberry Pi/Pi 2. The signals can be
level shifted to 3.3V or 5V, whereas the operating voltage can be set
using the small hardware slide switch on the board. The image below
shows the components provided with the kit.
Shifter shield components
The display is a white on blue LCD display with tactile switches
and I/O pins. The WiringPi library provides a convenient programming
interface, which may be built using the following commands:
$ git clone https://github.com/hardkernel/wiringPi
$ cd wiringPi
$ ./build
Содержание ODROID-XU4
Страница 1: ...rev 20170310 ODROID XU4 USER MANUAL ...