Amaldi / Mbed 2 deprecated Amaldi_Test_LED

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****/