Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 2:da8f8b14f387
- Parent:
- 1:9b85c92a1ace
- Child:
- 3:67e70777bc5d
--- a/main.cpp Wed Mar 11 16:31:03 2015 +0000 +++ b/main.cpp Mon Mar 23 13:20:48 2015 +0000 @@ -17,24 +17,24 @@ /* Includes ----------------------------------------------------------------------*/ #include "mbed.h" - -//Handles the initialization of peripherals -InterruptIn button(PA_0); // inicialize button on STM32F0 discovery -DigitalOut blue(PC_8); // inicialize blue LED on STM32F0 discovery -DigitalOut green(PC_9); // inicialize green LED on STM32F0 discovery +/* Defines -----------------------------------------------------------------------*/ +/* Function prototypes -----------------------------------------------------------*/ /* Variables ---------------------------------------------------------------------*/ bool press = false; // boolean value, where you can find if was the button pressed - +//mbed - initialization of peripherals +InterruptIn button(PA_0); // inicialize button on STM32F0 discovery +DigitalOut blue(PC_8); // inicialize blue LED on STM32F0 discovery +DigitalOut green(PC_9); // inicialize green LED on STM32F0 discovery /* Functions----------------------------------------------------------------------*/ /******************************************************************************* * Function Name : pressed. -* Description : Changes value press if someone pressed the button. +* Description : Changes value "press" if someone pressed the button. * Input : None. * Output : None. * Return : None.