//***************************************************************************// //This tutorial shows how to flash the decimal point LED of the right hand //Seven Segment display. //The tutorial uses the start code that mbed provides with a tweak to the //output LED. // //Adam Appleby //01/08/2013 //***************************************************************************// #include "mbed.h" //Include the mbed header file which contains the prototypes of the libraries used here (DigitalOut) as well as various syntax definitions. DigitalOut myled(P0_23); //Creates an instance of DigitalOut called myled which controls pin 23 of port 0. int main() { while(1) { //Create infinite loop to keep program running. myled = 1; //Turn on LED. wait(0.2); //Wait for 0.2 seconds. myled = 0; //Turn off LED. wait(0.2); //Wait for 0.2 seconds. } //Go back to the start. }