GPIO
Last updated
Last updated
LinkIt 7697 supports the core Arduino APIs including:
These APIs allow you to control or read the high/low state of digital pins.
However, note that the pin layout is different from Arduino Uno. Please refer to the pinout diagram for detailed pin definitions.
This is the most basic example sketch from the board - blink the onboard USR LED. To run the example, follow the below steps:
Connect the board to your computer, as instructed in the previous chapter.
Select LinkIt 7697 from the board: go to Tools > Board.
Select Tools > Port: menu, and then select COM XYZ (LinkIt 7697). The number XYZ can be different on each computer. The screenshot below is an example:
4. Now select the Blink example from File > Examples > 01. Basics > Blink, as shown below:
5.Click the Upload button on the toolbar, as shown below:
6.It may take some time to compile and upload the sketch. During the uploading process, the board's TX and RX LEDs will blink rapidly. Once the uploading completes, the IDE shows Done uploading.
as shown below:
7. The board will automatically reboot, and the USR LED should start to blink once every second.
Note that unlike Arduino Uno, the USR LED maps to P7 instead of P13 on the LinkIt 7697 board. Therefore the functional call:
is equal to:
Refer to the pinout diagram to find other pin mapping definitions.