Simplified version with classic style

main.cpp

Committer:
okano
Date:
2019-12-20
Revision:
5:4ac5e3650110
Parent:
3:13a75fd3a983

File content as of revision 5:4ac5e3650110:

/* mbed Microcontroller Library
 * Copyright (c) 2019 ARM Limited
 * SPDX-License-Identifier: Apache-2.0
 */
 
 /* mbed-fest hands-on session sample 1
  * bare-metal blinky with classic style code
  */

#include "mbed.h"

DigitalOut myled( LED1 );

int main()
{
    while ( true ) {
        myled = 1;
        wait( 0.5 );
        myled = 0;
        wait( 0.5 );
    }
}