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
main.cpp
- Committer:
- pinofal
- Date:
- 2018-11-21
- Revision:
- 9:7bc670023361
- Parent:
- 8:baedd289a8cc
File content as of revision 9:7bc670023361:
/* mbed specific header files. */
#include "mbed.h"
DigitalOut LedWAD (PC_2);
DigitalOut LedWAS (PC_3);
DigitalOut LedWPD (PC_10);
DigitalOut LedWPS (PA_0) ;
DigitalOut LedYAD (PC_13);
DigitalOut LedYAS (PC_14);
DigitalOut LedRPD (PC_12);
DigitalOut LedRPS (PA_1) ;
DigitalIn myButton(USER_BUTTON);
int main()
{
LedWAD=0;
LedWAS=0;
LedWPD=0;
LedWPS=0;
LedYAD=0;
LedYAS=0;
LedRPD=0;
LedRPS=0;
while(true)
{
if(myButton==1)
{
LedWAD = 1;
}
else
{
LedWAD = 0;
}
}
}
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/