This is a template project.

Dependencies:   mbed adrobo

Fork of adrobo_template by yasuo hayashibara

main.cpp

Committer:
yasuohayashibara
Date:
2020-04-20
Revision:
0:00cd5d387b74

File content as of revision 0:00cd5d387b74:

#include "mbed.h"
#include "adrobo.h"

BusOut led(LED1,LED2,LED3,LED4,LED5,LED);

int main() {
    int no = 0;
    while(1) {
        led = 1 << no;
        no = (no >= 5) ? 0 : (no + 1);
        wait(0.5);
    }
}