Basic blinky demo for MAX32630FTHR

Dependencies:   USBDevice pegasus_dev max32630fthr

main.cpp

Committer:
switches
Date:
2016-12-13
Revision:
2:6c7d3a687d35
Parent:
1:707376a2b1bc

File content as of revision 2:6c7d3a687d35:

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

DigitalOut led1(LED1);
MAX32630FTHR pegasus;

// 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(MAX32630FTHR::VIO_3V3);
    
    while (true) {
        led1 = !led1;
        Thread::wait(500);
    }
}