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
Need help?
Do you have a question about the OLinuXino-MAXI and is the answer not in the manual?
Questions and answers