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.
main.cpp
- Committer:
- anoney180133
- Date:
- 2015-12-11
- Revision:
- 0:e66a2abcf59d
File content as of revision 0:e66a2abcf59d:
#include "mbed.h"
DigitalOut Nucleo_GREEN_LED(LED1);
DigitalIn Push_Button(PC_13,PullNone);
int main()
{
while(1)
{
if(Push_Button.read() == 0) // pressed button
{
Nucleo_GREEN_LED = 1; // LED is ON
}
else
{
Nucleo_GREEN_LED = 0; // LED is OFF
}
}
}