Basic blinky demo for MAX32630FTHR

Dependencies:   USBDevice pegasus_dev max32630fthr

main.cpp

Committer:
switches
Date:
2016-11-20
Revision:
1:707376a2b1bc
Parent:
0:60a522ae2e35
Child:
2:6c7d3a687d35

File content as of revision 1:707376a2b1bc:

#include "mbed.h"
#include "max32630fthr.h"

DigitalOut led1(LED1);
MAX32630FTHR pegasus(MAX32630FTHR::VIO_3V3);

// main() runs in its own thread in the OS
// (note the calls to Thread::wait below for delays)
int main()
{
    // initialize power and I/O on MAX32630FTHR board
    pegasus.init();
    
    while (true) {
        led1 = !led1;
        Thread::wait(500);
    }
}