/*############################################################# Program Name : ex1_flash_one_led Author : Grant Phillips Date Modified : 12/01/2016 Compiler : ARMmbed Tested On : STM32F4-Discovery Description : Example program that turns on an LED for 400ms, then off for 400ms, repeatedly. Requirements : * STM32F4-Discovery Board Circuit : * 1 LED connected to PD15 ##############################################################*/ #include "mbed.h" DigitalOut myled(PD_15); int main() { while(1) { myled = 1; //output ON wait(0.4); //wait 400ms myled = 0; //output OFF wait(0.4); //wait 400ms } }