How Setup The I2C, Spi, Uart - OLIMEX OLinuXino-MAXI User Manual

Open-source single-board linux computer
Hide thumbs Also See for OLinuXino-MAXI:
Table of Contents

Advertisement

OLIMEX© 2012
OLinuXino User's Manual
sleep 1
echo 0 > /sys/class/gpio/gpio65/value
sleep 1
done
We save it as as "gpio" and we make it executable with
chmod +x gpio
then we execut the script with:
./gpio
The LED should start blinking with 0.5Hz.

2.8 How setup the I2C, SPI, UART

Good place to check if you are trying to configure the I2C, SPI, UART etc via Linux is
http://www.inf.furb.br/~maw/asm51/Telit_GE863-PRO3_Linux_SW_UserGuide_r5.pdf. Telit have
explained how to do it with their board but it follows the same pattern for OLinuXino.
Another way to test I2C is using the i2c-tools utility (), which is available in OpenEmbedded.
For SPI you can use spidev tool:
Git link(click)
, check the spidev_test.c code for an example.
Page 13 of 48

Advertisement

Table of Contents
loading

Table of Contents