MiraBox User Guide
–page
22
/
29
10.
GPIO interface and control
(1)
LED demo program
There is a demo program to show the GPIO LEDs by entering command as below:
# ledtest1
This will light up all the LEDs.
(2)
Write a simple program to control the LED
In this GPIO box we use NXP PCA9505 I/O port expansion IC to provide 40-bit parallel input/output GPIOs.
Please download the datasheet to get the detailed description for this chip.
GPIO port 1
GPIO port 2
GPIO port 3
GPIO port 4
GPIO port 0