7 years, 7 months ago.

Seeed Arch Link pinout question

Hi, I am a newbie on mbed.
I have a Seeed Arch Link development board but I not quite understand about the pinout of this board.

I have checked the wiki page. They do have the pinout diagram.
pinout

Here is some my example about my question.

#include "mbed.h"
DigitalOut led1(LED1);

int main(void)
{
    led1 = true;
}

The blue LED goes up.

Question1

#include "mbed.h"
DigitalOut led2(LED2);

int main(void)
{
    led2 = true;
}

Nothing happens. also as same result as LED3 and LED4.

By searching internet, I found probably pinout map here. It says LED1 to LED4 are same.

Question2

#include "mbed.h"

DigitalOut myled(p17);

int main() {
    while(1) {
        myled = 1;
        wait(0.2);
        myled = 0;
        wait(0.2);
    }
}

Amazing! The red LED in the middle is blinking.

So what is the relationship about pinout and code?

Be the first to answer this question.