A test showing the BrainPad working with mbed

Dependencies:   mbed

main.cpp

Committer:
gusissa
Date:
2017-08-10
Revision:
0:3e01d1021854

File content as of revision 0:3e01d1021854:

#include "mbed.h"

DigitalOut myled(PC_6);

int main() {
    while(1) {
        myled = 1; // LED is ON
        wait(0.2); // 200 ms
        myled = 0; // LED is OFF
        wait(1.0); // 1 sec
    }
}