Basic blinky demo for MAX32630FTHR

Dependencies:   USBDevice pegasus_dev max32630fthr

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "max32630fthr.h"
00003 
00004 DigitalOut led1(LED1);
00005 MAX32630FTHR pegasus;
00006 
00007 // main() runs in its own thread in the OS
00008 // (note the calls to Thread::wait below for delays)
00009 int main()
00010 {
00011     // initialize power and I/O on MAX32630FTHR board
00012     pegasus.init(MAX32630FTHR::VIO_3V3);
00013     
00014     while (true) {
00015         led1 = !led1;
00016         Thread::wait(500);
00017     }
00018 }
00019